keywords:do

C++ Reference

do

Syntax:

    do {
    statement-list;
    } while( condition );

The do construct evaluates the given statement-list repeatedly, until condition becomes false. Note that every do loop will evaluate its statement list at least once, because the terminating condition is tested at the end of the loop.

Related Topics: break, continue, for, while