用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 }
原文地址:https://www.cnblogs.com/shenfei2031/p/2017391.html