
02-04-2008, 12:30 AM
|
|
Graal Administration
|
Join Date: Jan 2000
Location: Admins
Posts: 11,693
|
|
|
C++ supports a very limited version of "goto", of course you cannot jump into other functions or even outside of the current scope (when you have declared variables). The compiler is basicly breaking the code down to several if-else statements. That is exactly what you should do too, it will make the code look more clean.
In some other languages you can break a specific loop by adding a label in front of the loop and then saying "break labelname". It might be easier to stay with stuff that everyone knows though, makes code more readable instead of introducing a lot of GS2-specific constructs. |
|
|
|