Hello,
I am using turbo c++, dos one, and am making a program, but theres a problem...
My program runs on an infinite loop and has a small delay in between...It takes user's keystrokes at the start of loop like this,
int in;
while(1)
{
if(kbhit())
in=getch();
.
.
delay(100);
}
in this case, if the user holds a key, it takes plenty of inputs and keeps on doing work....
Is there a way through which i can clear all the inputs at the end of loop...
Thanks