#include #include #include using namespace std; int main() { int i, j; clock_t start_time, cur_time; //Print a line of stars and reprint it so that it appears to jiggle //back and forth cout << "\n\n\n * * * * * " ; for (j = 0; j < 15; j++){ start_time = clock(); while((clock() - start_time) < .5 * CLOCKS_PER_SEC); system ("CLS"); cout << "\n\n\n * * * * * " ; start_time = clock(); while((clock() - start_time) < .5 * CLOCKS_PER_SEC); system ("CLS"); cout << "\n\n\n * * * * * " ; } start_time = clock(); while((clock() - start_time) < .5 * CLOCKS_PER_SEC); system("CLS"); cout << "\n\n\n\n\n "; return 0; }