程序如下:#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...画矩形.cppf:\画矩形.cpp(1) : fatal error C1083: Cannot open include file: 'graphics.h': No such file or directoryError executing cl.exe.
- 2 回答
- 0 关注
- 216 浏览
添加回答
举报
0/150
提交
取消