4. Control Statements: Part 1; Assignment, ++ and -- Operators


In this chapter you’ll:

• Use the if and if...else selection statements to choose among alternative actions.

• Use the while repetition statement to execute statements in a program repeatedly.

• Implement counter-controlled repetition and sentinel-controlled repetition.

• Use the increment, decrement and assignment operators.

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.