Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <windows.h>
- #include <time.h>
- void siusiak(int x, int y)
- {
- COORD p = {x,y};
- SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), p );
- };
- using namespace std;
- class platek
- {
- public:
- int x;
- int y;
- };
- main()
- {
- platek snow[50];
- srand(time(NULL));
- for (int a=0; a<50; a++)
- {
- snow[a].x=rand();
- snow[a].y=rand();
- gotoxy(snow[a].x, snow[a].y);
- cout << "*";
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement