#include<graphics.h>
main()
{int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"c:\\tc");
cleardevice();
moveto(160,120);
lineto(480,120);
lineto(160,360);
lineto(160120);
getch();
closegraph();
}
运行结果如下:
ompiling...
画矩形.cpp
f:\画矩形.cpp(1) : fatal error C1083: Cannot open include file: 'graphics.h': No such file or directory
Error executing cl.exe.