August 2001
Beginner
482 pages
10h 52m
English
Many programming problems are solved by repeatedly acting on the same data.
Iteration means doing the same thing again and again. The principal method of iteration is the loop. |
In the primitive days of early computer science, loops consisted of a label, some statements, and a jump.
In C++, a label is just a name followed by a colon (:). The label is placed to the left of a legal C++ statement, and a jump is accomplished by writing goto followed by the label name.
goto is generally not used in C++, and for good reason. goto statements can cause a jump to any location in your source code, backward ...
Read now
Unlock full access