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.