O'Reilly logo

Sams Teach Yourself C++ in One Hour a Day, Eighth Edition by Siddhartha Rao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required