zaterdag 16 juni 2007

Entry-Condition loops

FOR and WHILE are both entry condition loops, this means when the test condition in the loop fails at the beginning the loop, body of the loop, is not even executed.

while(false){cout << "hello"}

Will print noting since the entry condition is false!

Geen opmerkingen: