程序调试问题
我自己用TC 2.0写了个显示圆圈的图形,生成的EXE文件单独运行时提示NTVDM CPU 遇到无效指令。求各位排解。下面是源码:
#include <graphics.h>
#include <stdio.h>
main()
{
int gdriver=DETECT,gmode;
registerbgidriver(EGAVGA_driver);
initgraph(&gdriver,&gmode,"c:\tc20h\bgi");
setbkcolor(15);
setcolor(4);
circle(200,200,100);
getch();
closegraph();
return(0);
}