M manson_52 Newcomer Joined Aug 19, 2007 Sythe Gold 0 Messages 18 Oct 12, 2008 #1 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?
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?
Govind The One Musketeer Joined Apr 22, 2005 Sythe Gold 23 Messages 7,825 Oct 12, 2008 #2 if(n==999) { exit(0); }
exapto #1 OSRS Magic Training Service Joined Oct 10, 2008 Sythe Gold 123 Messages 645 Oct 13, 2008 #4 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
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