I have a Win32 program that runs on a loop. I would like to be able to pause that program while awaiting a keypress. It doesn\'t matter whether I use \'any key\' or a specif
You should #include and use std::cin.get();
#include
std::cin.get();
I think the getch() is a C function, but since you are using C++, then the cin would be more appropriate.
getch()
cin