Original Post
Having not done much (any) C++ console programming for a while, I thought it would be nice to make a simple game to get used to it again - something more fun than 3D or whatever. And that's where I still am now - well, about 10 lines of code down. I coudldn't think of how to get a keypress from the user without them pressing enter after it, using cout. So I used getch(), and let the user just press enter to make getch() happy and let the program carry on. Now, I face my problem. How can I stop a loop (incrementing x until enter is pressed) to stop when enter is pressed? No idea myself. I've tried whatever I've thought of, but nothing works. Hmmmmm..