#include<stdlib.h>
#include <stdio.h>
#include <time.h>
int main()
{
#if 0
int bootdelay = 10;
printf("Hit any key to stop autoboot: %2d ", bootdelay);
while(1)
{
printf("\b\b\b%2d ", bootdelay);
sleep(1);
}
return 0;
#endif
int i;
printf(".................\n");
for(i = 5; i > 0; i--)
{
if(i == 5)
{
printf("Wait %d",i);
fflush(stdout);
sleep(1);
}
else
{
printf("\b%d",i);
fflush(stdout);
sleep(1);
}
}
return 0;
}
进度条
最新推荐文章于 2024-07-11 22:15:07 发布