29.1 dowhile

I l @ ve RuBoard

29.1 do/while

The do/while s tatement has the following syntax:

 do {   statement   ;       statement   ;  } while   (expression);   

The program loops , tests the expression, and stops if the expression is false (0).

This construct always executes at least once.

do/while is not frequently used in C++ because most programmers prefer to use a while/break combination.

I l @ ve RuBoard


Practical C++ Programming
Practical C Programming, 3rd Edition
ISBN: 1565923065
EAN: 2147483647
Year: 2003
Pages: 364

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net