C++ Programming Help

Status
Not open for further replies.
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.
 
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;
}
}
 
Status
Not open for further replies.
Back
Top Bottom