5. Control Statements: Part 2; Logical Operators


In this chapter you’ll:

• Use for and do...while to execute statements in a program repeatedly.

• Implement multiple selection using the switch selection statement.

• Learn how break and continue alter the flow of control.

• Use the logical operators to form complex conditional expressions in control statements.

• Learn to avoid the consequences of confusing the equality 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.