goto or similar

I was wondering if there was a command in c++ like the "goto" command in .bat files, and if so, how do i use it?
There is, though they are generally frowned upon by the majority of the programming community because of their tendency to create "spaghetti code." You use them like this:

1
2
3
mylabel:
//do stuff
goto mylabel;
Last edited on
Yes I did see that, along with many people saying it was a very bad idea. I think thats what I'll use any way, thank you.
Topic archived. No new replies allowed.