OP OP S smartydebater Baseband Member Messages 39 Aug 31, 2008 #11 Ah... thank you guys. That's what I needed! I knew there had to be a way to constantly monitor keystrokes and do something once a certain key was pressed.
Ah... thank you guys. That's what I needed! I knew there had to be a way to constantly monitor keystrokes and do something once a certain key was pressed.
revenge2 In Runtime Messages 360 Location earth Aug 31, 2008 #12 btw use system("pause"); instead of cin.get on devc++.
S0ULphIRE Golden Master Messages 9,232 Location Australia Aug 31, 2008 #13 if you want to constantly monitor for different key presses tho you might have to do something like: while(1) { char store; store=getchar(); switch (store) { case 'A': whatever; whatever; case 'B': whatever; default: nop; } }
if you want to constantly monitor for different key presses tho you might have to do something like: while(1) { char store; store=getchar(); switch (store) { case 'A': whatever; whatever; case 'B': whatever; default: nop; } }