Original Post
I've written a scientific simulation program in C++. The program operates by just going again and again through a loop simulating some reactions, but it takes days or even weeks sometimes to run. So I want a way to pause the simulation by hitting any key at the keyboard. At each iteration I want a way to check if the user has entered anything, and if not to continue on. Most of the input methods I'm familiar with wait for the user to enter something before moving on. Can someone point me in the right direction?