大家看看这个小程序!
#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;
}
----------------解决方案--------------------------------------------------------
有什么问题吗?
----------------解决方案--------------------------------------------------------
有问题,我想做无限循环
----------------解决方案--------------------------------------------------------
#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++)
{
setcolor(2);
arc(200,200,0,i,50);
delay(1000);
if(i==360)
{
setcolor(LIGHTRED);
outtextxy(160,195,textstring); /*array name is address*/
i=1;
}
}
// sleep(2);
// closegraph();
// return 0;
}
----------------解决方案--------------------------------------------------------
高人啊
----------------解决方案--------------------------------------------------------