函数名: kbhit
功 能: 检查当前按下的键
用 法: #include <conio.h>
int kbhit(void);
程序例:
#include <conio.h>
int main(void)
{
cprintf("Press any key to continue:");
while (!kbhit()) /* do nothing */ ;
cprintf("\r\nA key was pressed...\r\n");
return 0;
}