c++ - Make While Loop Shoot Back Up To Top -


so, i'm working on c++ assignment intro computer science class.

in program want there loop can shoot top anytime want, sort of how can boolean in example:

bool1 = true; while (bool1){     bool1 = true; } 

is there anyway can mirror effect in while loop set depend on numerical value like:

while(x > 99) 

thanks in advance.

you said in comment:

repeat beginning.

if want go start of while loop, use continue;

while(x > 99) {    // stuff.    // ...    // upon condition, go beginning.    if ( some_condition_is_true )       continue;     // otherwise, proceed normal execution of    // loop.    // ...  } 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -