Loops are one of the more complicated things to code in any programming language. Often we build them inside out, unlike most other pieces of code.
This exhibit consists of several pieces, each of which are menu entries. Normally you should process them in order, though the menu item d) could be viewed before c).
a) A general introduction to loops, including some terminology.
b) The various kinds of looping statements, including syntax.
c) Some loop construction tips.
d) Loop coding examples
e) Disk files, an approach needing looping
or
x) Return to Flow of Control Statements
Links:
A General Introduction to Loops
C++ Loop Statements
Curt's Loop Construction Tips
Loop Coding Examples
Disk Files
Flow of Control Statements