下载eaxyX库,执行程序
#include <graphics.h> // 就是需要引用这个图形库
#include <conio.h>
void main()
{
initgraph(640, 480); // 这里和 TC 略有区别
circle(200, 200, 100); // 画圆,圆心(200, 200),半径 100
getch(); // 按任意键继续
closegraph(); // 关闭图形界面
}
错误如下
c:\program files (x86)\microsoft visual studio\vc98\include\winnt.h(1091) : error C2146: syntax error : missing ';' before identifier 'KSPIN_LOCK'
c:\program files (x86)\microsoft visual studio\vc98\include\winnt.h(1091) : fatal error C1004: unexpected end of file found
看了winnt.h头文件,并不是缺少“;”的问题,在网上也没有找到具体的答案
就大佬帮忙,真心感谢