TC的库函数graphics.h使用出错,救命啊!

来源:百度知道 编辑:UC知道 时间:2024/05/15 15:49:27
tc2.0编译不成功,
这是程序:
----------------
#include "graphics.h"
main()
{
int gdriver,gmode;
initgraph(&gdriver,&gmode,"c:\\turbo c");
circle(50,50,20);
}
--------------------
系统提示错误信息如下:
tc.exe
the ntvdm cpu has encountered an illegal instruction
cs:a5ff ip:f88b op:ff ff ff ff choose "close" to terminate the application
/cose/ / ignore /

ntvdm.exe是指为了兼容旧的16位Windows和DOS程序而设置的虚拟机,你的文件NTVDM.exe坏了
解决办法:
1。把原来安装XP的光盘放入光驱
2。在运行里输入 sfc/scannow 这样就可以在几分钟之内修复