Stopping a Loop Inside the Loop Inside a Loop

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
closed account (Dy7SLyTq)
you can either use goto, or a couple of boolean variables as conditions for running
what is the code for the goto keyword?
closed account (Dy7SLyTq)
: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
closed account (Dy7SLyTq)
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!
closed account (Dy7SLyTq)
no problem! if you have any more questions dont hesitate to ask!
Topic archived. No new replies allowed.