Programming-Idioms

History of Idiom 78 > diff from v38 to v39

Edit summary for version 39 :
[Cpp] why so much indentation

Version 38

2016-02-17, 11:24:43

Version 39

2016-02-17, 13:39:33

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.