键盘输入扫描
#include"stdio.h"#include"dos.h"
#define key_ESC 1
#define key_A 30
int getkeyscode();
main()
{
int acount=0,ky;
do
{
ky=getkeyscode();
switch(ky)
{
case key_A:
++account;break;
case key_ESC:
printf("\nend the program");
exit(0);
11
default:break;
}
printf("\nduring the program,you pree A and a %d times",acount);
}
getkeyscode()
{
union REGS rg;
rg.h.ah=0;
int86(0*16,&rg,&rg);
return rg.h.ah;
}
请问11是什么意思?还有几处错,望大家看看,谢谢!!