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!
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!
Last edited by cloudsword; 01-26-2010 at 11:56 PM.
goto can be used, or you could call raise(), or abort(), or break out of your while loop.
Mainframe assembler programmer by trade. C coder when I can.
Thanks
I thought the right word was "continue".