Lesson 6. Controlling Program Flow

Most applications behave differently given a new situation or different user input. To enable your application to react differently, you need to program conditional statements that execute different code segments in different situations.

In this lesson, you find out

Image How to make your program behave differently in certain conditions

Image How to execute a section of code repeatedly in a loop

Image How to better control the flow ...

Get Sams Teach Yourself C++ in One Hour a Day, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.