Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- using std::cout;
- using std::cin;
- using std::endl;
- void main()
- {
- // setlocale(LC_ALL, "Russian");
- int n = 0;
- while (1)
- {
- for (int i = 0; i < 10; i++)
- {
- for (int j = 0; j <= 10; j++)
- {
- (i == 9) ? cout << "_" : cout << " ";
- ((i == n) && (j == 4 || j == 5)) ? cout << "*" : cout << " ";
- }
- cout << endl;
- }
- Sleep(500);
- if (n + 1 < 10) n++;
- system("cls");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement