搜索
编程论坛
→
开发语言
→
『 C语言论坛 』
→ Visual C++里面没有 bios.h 这个头文件吗?
标题:
Visual C++里面没有 bios.h 这个头文件吗?
只看楼主
LOVE默默mo
等 级:
新手上路
帖 子:10
专家分:0
注 册:2007-7-7
楼主
问题点数:0 回复次数:1
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
搜索更多相关主题的帖子:
bios
Visual
文件
2007-07-14 22:57
mzjllh
来 自:江苏扬州
等 级:
论坛游民
帖 子:76
专家分:41
注 册:2007-2-8
第
2
楼
得分:0
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;
}
2007-07-15 08:24
2
1/1页
1
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-155427-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 2.095262 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved