50相送,请高手指教 dev-c++
是不是在dev-c++4.9.7里就不能使用graphics.h呢!
编译下程序时,有好多graphics.h里报的错。
#include <graphics.h>
#include <conio.h>
#include <dos.h>
using namespace std;
void main()
{
int driver= DETECT,mode;
int DATAARRAY[]={250,200,150,300,450,300,350,200,250,200};
int NUM;
initgraph(&driver,&mode,"");
for(NUM=0;NUM<15;NUM++)
{
setcolor(NUM);
setlinestyle(SOLID_LINE,0,THICK_WIDTH);
circle(300,150,50);
circle(285,140,70);
arc(300,150,255,315,24);
drawpoly(5.DATAARRAY);
DELAY(150);
}
getch();
closegraph();
}
请高手指教。