Here is a schema of my code :
while (..)
{
for (...; ...;...)
for(...;...;...)
if ( )
{
...
continue;
}
}
What will do the continue? He will only make the second loop iterate one time, no?
I would like it to reach the while, is it possible ?
Thanks!
The
continuehere impacts the nearest loop – your secondfor. There are two ways of jumping directly to thewhile:goto, although sometimes “considered harmful”, this is arguably the main reason why it still existsreturnTo illustrate the latter:
and the former: