HyperSensualNarwhal

Starry Night

Jan 3rd, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. // Звездное небо
  2.  
  3. #include <iostream>
  4. #include <ctime>
  5. #include <Windows.h>
  6.  
  7. using std::cout;
  8. using std::cin;
  9. using std::endl;
  10.  
  11. void main()
  12. {  
  13.     while (true)
  14.     {
  15.    
  16.  
  17.         for (int symbol, i = 0, srand(time(NULL)); i < 5; ++i, Sleep(50), cout << endl)
  18.             for (int j = 0; j < 250; (symbol = rand() % 500), ((symbol == 0) ? cout << (char)250 : cout << ' '), ++j);
  19.  
  20.            
  21.             // system("cls");
  22.            
  23.     }
  24.    
  25. }
Add Comment
Please, Sign In to add comment