Logo

Programming-Idioms

History of Idiom 78 > diff from v39 to v40

Edit summary for version 40 by :
[Cpp] why so much indentation - better

Version 39

2016-02-17, 13:39:33

Version 40

2016-02-17, 13:40:08

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Code
do {
    someThing();
    someOtherThing();
} while(c);
Code
do {
  someThing();
  someOtherThing();
} while(c);
Comments bubble
The block code is not repeated in the source.
Comments bubble
The block code is not repeated in the source.