大家看看这个小程序!
#include<graphics.h>int main(void)
{
int gdriver=DETECT,gmode;int i; char textstring[]={"I Love You!"};
initgraph(&gdriver,&gmode,"c:\\tc");
for(i=1;i<=360;i++)
{
setcolor(2);
arc(200,200,0,i,50);
delay(1000);
if(i==360)
{
setcolor(LIGHTRED);
outtextxy(160,195,textstring); /*array name is address*/
}
}
sleep(2);
closegraph();
return 0;
}