Instructors' Guide
Introduction
Terminology
Expressions
Control
Objects
Inheritance
Technology
Summary
Control
C++ provides a number of elementary control structures,
directly inherited from C.
See slide [cc-control].
Control
- conditional --
- selection --
- iteration --
- looping --
- jumps -- return, break, continue, goto
slide: C++ -- control
These include a
conditional statement
(of which the else part may be omitted),
a selection statement
(that allows for a default branch),
an iteration statement
(which is also offered in a reversed form
to allow a repeat),
a loop statement
(consisting of an initialization part, a part
to test for termination, and a repetition part to increase
the loop variable)
and, finally, jumps
(including the so much despised goto).