S
Shawn
Hi,
I am wondering how can I jump out of several layers of loops. break can
only jump out of the inner most loop.
for ( ...) //layer 1
{
for (...) //layer 2
{
for (...) //layer 3
{
//code
if (jump==true) //How can I jump out of all the layers at once?
}
}
}
I am wondering how can I jump out of several layers of loops. break can
only jump out of the inner most loop.
for ( ...) //layer 1
{
for (...) //layer 2
{
for (...) //layer 3
{
//code
if (jump==true) //How can I jump out of all the layers at once?
}
}
}