I've heard it is not possible in C++, but I'd like to be able to have a simple command where the user presses a key (preferably a number) and code executes. Is there a simple command? I'm using windows and iostream as includes, so if the command takes something else please tell.
I am using Windows 2000, and I have access to XP and Vista. I'm using Dev Bloodshed C++.
If it is possible, I would like to know two commands. One that stops and waits for multiple keypresses, such and 1 or 2, and one that you press to stop a loop and doesn't stop the thread to wait for it.
I know it's picky, but either would help. Anything with keypresses would help, actually.