Book Image

Advanced C++

By : Gazihan Alankus, Olena Lizina, Rakesh Mane, Vivek Nagarajan, Brian Price
5 (1)
Book Image

Advanced C++

5 (1)
By: Gazihan Alankus, Olena Lizina, Rakesh Mane, Vivek Nagarajan, Brian Price

Overview of this book

C++ is one of the most widely used programming languages and is applied in a variety of domains, right from gaming to graphical user interface (GUI) programming and even operating systems. If you're looking to expand your career opportunities, mastering the advanced features of C++ is key. The book begins with advanced C++ concepts by helping you decipher the sophisticated C++ type system and understand how various stages of compilation convert source code to object code. You'll then learn how to recognize the tools that need to be used in order to control the flow of execution, capture data, and pass data around. By creating small models, you'll even discover how to use advanced lambdas and captures and express common API design patterns in C++. As you cover later chapters, you'll explore ways to optimize your code by learning about memory alignment, cache access, and the time a program takes to run. The concluding chapter will help you to maximize performance by understanding modern CPU branch prediction and how to make your code cache-friendly. By the end of this book, you'll have developed programming skills that will set you apart from other C++ programmers.
Table of Contents (11 chapters)
7
6. Streams and I/O

Introduction

During the Software Development Life Cycle (SDLC), once the requirement gathering phase is complete, then generally comes the Design and Architecture phase, wherein the high-level flow of the project is defined and broken down into smaller components of modules. When there are many team members in a project, it is necessary that each team member is clearly assigned a specific part of the module and that they are aware of their requirements. This way, they can independently write their part of the code in an isolated environment and make sure it works fine. Once their part of the work is complete, they can integrate their module with the other developer's modules and make sure the overall project is executing as per the requirements.

This concept can be applied to small projects too, where the developer is completely working on a requirement, breaking it down into smaller components, developing components in an isolated environment, making sure it executes as per the plan...