使用initgraph(&gdriver,&gmode,"");初始化图形界面出错!
TCPP3的程序中使用下述代码:
int gdriver=DETECT,gmode,error;
initgraph(&gdriver,&gmode,"");
error = graphresult();
if(error!=grOk){
printf("Graphics Error:%s\n",grapherrormsg(error));
getch();
exit(1);
}
运行提示Can not find file EGAVGA.BGI,但是在我的E:\TC\BGI目录下明明是有这个文件的啊?是不是哪个地方没有设置啊?希望指教!