Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. int main()
  2. {
  3. int balance = 100;
  4. int cPercent;
  5. float bet;
  6. float thirty = 1.3;
  7. int outcome;
  8. std::cout << "Welcome!\n";
  9. std::cout << "\nYour balance is currently: " << balance << "$\n";
  10. std::cout << "Would you like to have 50% or 30% or 70% chance percent of winning?\n";
  11. std::cout << "Type 1 for 30%, 2 for 50% and 3 for 70%";
  12. std::cin >> cPercent;
  13.  
  14. while(1){}
  15. }
  16.  
  17. void gamble()
  18. {
  19. int gPercent = (rand() % 10);
  20. if (cPercent = 1) {
  21. if (gPercent < 3) {
  22. outcome = floor(bet * thirty);
  23. }
  24. else if (cPercent = 2) {
  25.  
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement