下面这段代码:
# include <stdio.h>
# include 《graphics.h》
void main()
{
int driver,mode,i;
float j=1,k=1;
driver=VGA,mode=VGAHI;
initgraph(&driver,&mode,"");
setbkcolor(YELLOW);
for(i=0;i<=25;i++)
{
setcolor(8);
circle(310,250,k);
k=k+j;
j=j+0.3;
}
}
下面这段代码:
# include <stdio.h>
# include 《graphics.h》
void main()
{
int driver,mode,i;
float j=1,k=1;
driver=VGA,mode=VGAHI;
initgraph(&driver,&mode,"");
setbkcolor(YELLOW);
for(i=0;i<=25;i++)
{
setcolor(8);
circle(310,250,k);
k=k+j;
j=j+0.3;
}
}
在我的机子上运行很好啊。同心圆。