0
Can someone please explain me how does work this construction and tell in which cases I can use it?
while(true) { ... else { break; } }
2 ответов
0
Compile error occurs. Because else without if statement doesn't work.
It should may be like
while(true)
{
...
If(condition) {
break;
}
..
}
Or like
while(condition)
{
...
if(condition) {
...
}
else {
break;
}
...
}
is your looking this code explanation, or correction is enough..
0
Ok, if it's works only with "if" i understand how it works, thanks