Hello. I have a program like so:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
for(;;)
{
if()
{
for()
{
if()
{
//here, break both for loops, how?
}
}
}
}
|
The code as it is is necessary.
Any help would be appreciated. Thank you!
Last edited on
you can either use goto, or a couple of boolean variables as conditions for running
what is the code for the goto keyword?
:label
goto :label
ever written batch? used the exact same way. i dont recommend it though. there are very few cases that it actually needs to be used
oh thanks. I do write some basic shortcuts and stuff as batch files. I didn't think the two were similar. Thank you
no thats not what i meant. batch and c++ are vastly different. i meant that you use goto in batch the same way as in c++ (command wise)
I know what you meant, that the two keywords were similar, not the languages. Thank you for all the help!
no problem! if you have any more questions dont hesitate to ask!