Now I know that there is a tutorial section about this, but I don't quite get it. So what I want to do is this:
Code:{ int failorwin; cout<<"Press 1 to fail, press 2 to win.\n"; cin>> failorwin; cin.ignore; if ( failorwin == 1 //here I want it to display a gameover message and return to the first cout ) if (failorwin == 2 ) { cout<<"you won!\n"; system("pause"); return(0); }