| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2241 人关注过本帖
标题:Visual C++里面没有 bios.h 这个头文件吗?
只看楼主 加入收藏
LOVE默默mo
Rank: 1
等 级:新手上路
帖 子: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
Rank: 2
来 自:江苏扬州
等 级:论坛游民
帖 子:76
专家分:41
注 册:2007-2-8
收藏
得分: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,&regs,&regs);
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
快速回复:Visual C++里面没有 bios.h 这个头文件吗?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018032 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved