Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Звездное небо
- #include <iostream>
- #include <ctime>
- #include <Windows.h>
- using std::cout;
- using std::cin;
- using std::endl;
- void main()
- {
- while (true)
- {
- for (int symbol, i = 0, srand(time(NULL)); i < 5; ++i, Sleep(50), cout << endl)
- for (int j = 0; j < 250; (symbol = rand() % 500), ((symbol == 0) ? cout << (char)250 : cout << ' '), ++j);
- // system("cls");
- }
- }
Add Comment
Please, Sign In to add comment