double

do

The do loop is one of three loop constructs available in C++. The general form of the do loop is

 do {      statement block } while(condition);

If only one statement is repeated, the braces are not necessary, but they add clarity to the statement.

The do loop is the only loop in C/C++ that will always have at least one iteration because the condition is tested at the bottom of the loop.




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

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