thread: C++
View Single Post
  #41  
06-17-2011, 03:28 AM
STM's Avatar
STM
Anarcho-Apiarist
 
: Jun 2008
: Your mother
: 9,859
Blog Entries: 161
Rep Power: 28
STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)STM  (6435)

Yes but they are huge arduous codes that slow down playability of an exe.

furthermore, I would like to make sure the Command Prompt doesn't close for my text based application. At the moment I am using:

:
std::cout << " Press the enter key to exit at any time" ;
std:cin.ignore(std::cin.rdbuf()->in_avail() +1);
To keep the app working but I would rather the player press something like pressing '0' to end the game because primarily, you need people to enter a choice with 'enter' key, you cannot do this with the above code.
__________________
:
Oh yeah, fair point. Maybe he was just tortured until he lost consciousness.

Reply With Quote