I want to be able to get entirely out of a conditional tree. how do I do this?
Here is sample code
Code:while(1){ //I want to get back here
if(/*stuff*/){
//stuff
}
else{
//stuff
if(){
//stuff
}
else(
//more stuff
//This is where I am!
Printable View
I want to be able to get entirely out of a conditional tree. how do I do this?
Here is sample code
Code:while(1){ //I want to get back here
if(/*stuff*/){
//stuff
}
else{
//stuff
if(){
//stuff
}
else(
//more stuff
//This is where I am!
goto can be used, or you could call raise(), or abort(), or break out of your while loop.
Thanks
I thought the right word was "continue".