Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Header.h"
- #include <iostream>
- #include <ctime>
- using namespace std;
- void main()
- {
- srand((unsigned)time(nullptr));
- RandomGenerator a;
- a.SetProability(30);
- int count = 0;
- for (int i = 0; i < 60; i++)
- {
- if (a.GetEvent())
- {
- count++;
- }
- }
- cout << count << endl;
- CarMaker e;
- Car temp = e.MakeCar();
- temp.ShoeCar();
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement