(I know there are many sources about it, though I use 5 or later to use C or C ++
I would like to ask how I would like to go about breaking the outer loop inside the internal loop.
Example:
While (true) {for (int i = 0; i & lt; 2; i ++) {std :: cout & lt; & lt; "what to say?"; // insert external-loop break statement} }
There are some pseudo code above Do not worry about ray.
Keep your loop in the function and back From.
zero runmealop (...) {while (true) {for (int i = 0; i <2; i ++) {std :: cout & lt; << Code> You can use . while (baking) {for (int i = 0; i & lt; 2; i ++) {std :: cout & lt; & lt; "what to say?"; If (event sure) {Goto Label Endlup; }}} LabelEndLoop: // ...
Additionally you can use the Boolean to "break".
bool bKeepGoing = true; While (bkping) {for (int i = 0; i
Comments
Post a Comment