A statement that executes repeatedly while a condition is true or until some condition is satisfied.
- infinite loop:
A loop whose condition is always true.
The statements inside the loop.
One pass through (execution of) the body of the loop, including the evaluation of the condition.
A special character, written as
\tin C++, that causes the cursor to move to the next tab stop on the current line.
To divide a large complex program into components (like functions) and isolate the components from each other (for example, by using local variables).
- local variable:
A variable that is declared inside a function and that exists only within that function. Local variables cannot be accessed from outside their home function, and do not interfere with any other functions.
To replace something unnecessarily specific (like a constant value) with something appropriately general (like a variable or parameter). Generalization makes code more versatile, more likely to be reused, and sometimes even easier to write.
- development plan:
A process for developing a program. In this chapter, I demonstrated a style of development based on developing code to do simple, specific things, and then encapsulating and generalizing.