How can I trap a keypress in C++?
Hello everyone,
I would be really grateful is someone could tell me how to trap a keypress in C++?I want to do a particular thing unless the user presses the enter key(or any key for that matter)..On detecting the keypress I want to move on and do something else..I tried the getch() method..But on doing that,it waits everytime for a keypress..which is not what I want...What I want is that the execution should proceed till the user presses a particular key...Any help would be highly appreciated.
Thanks.