用C实现旋转棒进度条指示器

1 #include <stdio.h>
2 #include <stdlib.h>
3
4 int main()
5 {
6 int i, lotsa = 100000;
7 printf("working:");
8 for (i = 0; i < lotsa; i++) {
9 printf("%c\b", "|/-\\"[i%4]);
10 fflush(stdout);
11 }
12 printf("\ndone.\n");
13 return 0;
14 }

posted on 2011-04-15 17:13  Cheney Shen  阅读(428)  评论(1编辑  收藏  举报

导航