I am using getch() and my app crashes instantly. Including when doing:
getch()
int main() { getch(); }
I can\'t find the link but
Use the cin.get() function for example:
#include using namespace std; int main() { char input = cin.get(); cout << "You Pressed: " << input; }
The program would then wait for you to press a key.
Once you have, the key you pressed would be printed to the screen.