棱形
程序如下!#include "graphics.h"
#include "stdio.h"
main()
{ int driver=DETECT,mode;
int x,y,i,k,a=100,b=5;
initgraph(&driver,&mode,"");
x=y=a;
for(i=0;i<66;i++)
{ setcolor(i++);
setbkcolor(0);
box(x,y);
circle(310,200,100+k*i);
settextstyle(1,0,10);
outtextxy(270,200,"feng zheng");/*汉字怎么插入啊*/
x+=b;
y-=b;
delay(2000000000);
delay(2000000000);
delay(2000000000);
delay(2000000000);
cleardevice();
}
}
int box(int x,int y)
{
line(310,200-y,310-x,200);
line(310-x,200,310,200+y);
line(310,200+y,310+x,200);
line(310+x,200,310,200-y);
}