process_bar.hpp 219 B

1234567891011121314
  1. #include<iostream>
  2. using namespace std;
  3. void rotate()
  4. {
  5. int i = 0;
  6. char rotater[] = {'-', '\\', '|', '/'};
  7. while (i < 100)
  8. {
  9. cout << rotater[i % 4];
  10. system("clear");
  11. i++;
  12. }
  13. }