Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <unistd.h>
- const int SECOND = 1000000; //one second = 1x10^6 microseconds
- using namespace std;
- int main()
- {
- for (int i = 0; i <= 10; i++)
- {
- cout << ".";
- cout.flush ();
- usleep (0.5 * SECOND);
- }
- cout << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment