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 }
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 }