程序如下:#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 關注
- 288 瀏覽