为什么说 Cannot open include file: 'graphics.h': ?
明明是可以运行的程序为什么在我的机器上就运行不了?#include<graphics.h>
void main()
{
int driver,mode;
int i;
driver=DETECT;
mode=0;
initgraph(&driver,&mode,"");
outtext("This is an example");
outtext("another line");
for(i=100;i<200;i+=8)
outtextxy(200,i,"hello");
getch();
restorecrtmode();
}
编译显示
------ 已启动生成: 项目: keikaku, 配置: Debug Win32 ------
正在编译...
keikaku.cpp
c:\documents and settings\administrator\桌面\编程\keikaku\keikaku\keikaku.cpp(1) : fatal error C1083: Cannot open include file: 'graphics.h': No such file or directory
生成日志保存在“file://c:\Documents and Settings\Administrator\桌面\编程\keikaku\keikaku\Debug\BuildLog.htm”
keikaku - 1 个错误,0 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========