hi..you can use getch() to get the hitted key..
while (!kbhit()) {
.
.
.
}
char ch = getch();
or this one..
char GetKeyPress()
{
return kbhit() ? getch() : GetKeyPress();
}
well, it depends on the purpose why you're determining the hitted
key...i believe there's even more and better way...
--- In [email protected], "satishgitam" <[EMAIL PROTECTED]> wrote:
>
> Hi,every body,I know that kbhit() returns nonzero when any key has
> hited. Then what happens to the hited key,is there any function to get
> that key.
>