-OverpoweR-
Member
- Reaction score
- 13
Ellow guys, i have been playing around with Dev-C++ editor and some starting C++ codes from some tutorials that i've been reading, but, i have a problem , since i want to be able to code that to exit the program when ESC is pressed, not Enter key , the tutorial has given me this command
for to quit my program when the Enter key is pressed, would anyone know to tell me how can i make it ESC instead of Enter?
PS. Sorry, trying to start off , total n00b
Code:
cin.ignore(cin.rdbuf()->in_avail() + 1);
for to quit my program when the Enter key is pressed, would anyone know to tell me how can i make it ESC instead of Enter?
PS. Sorry, trying to start off , total n00b