c 语言程序问题
#include<graphics.h>main()
{
char str[8]={10,20,30,40,50,60,70,80};
int gdriver,gmode,i;
struct fillsettingstype save;
gdriver=DETECT;
initgraph(&gdriver,&gmode,"D:\\tc");
setbkcolor(1);
cleardevice();
for(i=0;i<13;i++)
{ _____________要在这加上getch()要手动才可以变化颜色,和填充方式。为什么它不能自动循环。
setcolor(i+3);
setfillstyle(i,i+2);
bar(100,150,200,50);
bar3d(300,100,500,200,70,1);
pieslice(200,300,90,180,90);
sector(500,300,180,270,200,100);
delay(1000);
}
getch();
cleardevice();
setcolor(14);
setfillpattern(str,RED);
bar(100,150,200,50);
bar3d(300,100,500,200,70,0);
pieslice(200,300,0,360,90);
sector(500,300,0,360,100,50);
getch();
getfillsettings(&save);
closegraph();
clrscr();
printf("the pattern is %d, the color offilling is%d",save.pattern,save.color);
getch();
return 0;
}谁能帮我改进,要自动循环的