Advertisement
Timtsa

31.01 main

Jan 31st, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include "Header.h"
  2. #include <iostream>
  3. #include <ctime>
  4. using namespace std;
  5.  
  6.  
  7.  
  8.  
  9. void main()
  10. {
  11. srand((unsigned)time(nullptr));
  12. RandomGenerator a;
  13.  
  14. a.SetProability(30);
  15. int count = 0;
  16. for (int i = 0; i < 60; i++)
  17. {
  18. if (a.GetEvent())
  19. {
  20. count++;
  21. }
  22.  
  23. }
  24. cout << count << endl;
  25. CarMaker e;
  26. Car temp = e.MakeCar();
  27. temp.ShoeCar();
  28.  
  29.  
  30.  
  31. system("pause");
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement