Advertisement
Guest User

Untitled

a guest
Jan 14th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <conio.h>
  3. #include <windows.h>
  4. #include <time.h>
  5.  
  6. void siusiak(int x, int y)
  7. {
  8. COORD p = {x,y};
  9. SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), p );
  10. };
  11.  
  12. using namespace std;
  13.  
  14. class platek
  15. {
  16. public:
  17.     int x;
  18.     int y;
  19. };
  20.  
  21. main()
  22. {
  23.     platek snow[50];
  24.     srand(time(NULL));
  25.     for (int a=0; a<50; a++)
  26.     {
  27.         snow[a].x=rand();
  28.         snow[a].y=rand();
  29.         gotoxy(snow[a].x, snow[a].y);
  30.         cout << "*";
  31.     };
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement