运动我已经搞定,现在是不知道到下面那个为圆填充的代码错在哪里?
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
int main(void)
{ int i, d=100,c=1;
int gdriver=DETECT,gmode,errorcode;
initgraph(&gdriver,&gmode,”” );
errorcode=graphresult();
if(errorcode!=grOK)
{ printf(“Graphics error: %s\n", grapherrormsg(errorcode));
printf(“Press any key to halt:”);
getch();
exit(1);
}
cleardevice();
setbkcolor(EGA_WHITE);
for(i=1;i<=5;i++)
{circle(200,200,d);
floodfill(200,200,c);
d=d-20;
c=c+1;
}
getch();
closegraph();
return 0;