du51 在 csdn
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
char buff[10]="color ";
int i=0,j=1,len=strlen(buff);
while(i++<100)
{
_sleep(1000);
sprintf(buff+len,"%d",i);
printf("%s/n",buff);
system(buff);
j++;
if(j==8)j=1;
}
system("PAUSE");
return 0;
}