• Log in or sign up for an account here: https://www.sythe.org/login

C++ exit program

manson_52

Newcomer
Joined
Aug 19, 2007
Sythe Gold
0
Messages
18
i need a piece of code for C++ so that when you enter a specific number, eg "999" the program closes as soon as you enter the number

any ideas?
 
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
if(n==999)
{
exit(0);
}
 
Homosex
Man, first Swan got to a new post 1st, now SMR! WHAT IS THIS WORLD COMING TO!

BTW, you could just make it go to "Press any Key to Continue", just make it end right after the user inputs any #......Not much help im guessing....lol
 
Runescape Gamblingrunescape gambling
Back
Top