Visual C++里面没有 bios.h 这个头文件吗?
Visual C++里面没有 bios.h 这个头文件吗?我运行后,是这个错误d:\documents and settings\lr\桌面\lr@chome\21\21.c(2) : fatal error C1083: Cannot open include file: 'bios.h': No such file or directory
----------------解决方案--------------------------------------------------------
VC++里是没有bios.h这个头文件的,可以把下面的程序改一下来用:
#include <stdio.h>
#include <dos.h>
int main()
{
unsigned char scancode;
unsigned char charcode;
union REGS regs;
printf("Test of int 16 keyboard service\n");
printf("Press Ese to exit program\n");
while(charcode!=27) {
regs.h.ah=0;
int86(0x16,®s,®s);
scancode=regs.h.ah;
charcode=regs.h.al;
printf("scan:%.3d ASCII:%.3d %c\n",scancode,charcode,charcode);
}
return 0;
}
----------------解决方案--------------------------------------------------------