Im supposed to create a betting program to where the user rolls two dice and if the user rolls a 7 with dice 1 and dice 2 added up, the user wins. Anything else, the user loses. The user starts with $500 and should be able to lose money and win money allowing the user to make money or lose money.
Im having problems with allowing the user to continue to play after his first bet. And Im having issues with establishing the new user "money balance" when he starts a new bet. Here's what I have.... Thanks in Advance!!
Lines 27 and 28 set loop1 to false if you enter a value between 0 500, you need to set loop1 to true somewhere in the loop2 body or a conditional if statement.
I understood what you did with the bet_money, but Im just confused as to where, why and how to "set loop1 to true somewhere in the loop2 body". Sorry if Im a little slow, New to C++.
Thanks again!
You never set loop1 true to true, so it will never run loop1 again after the first time. I recommend making them into methods/functions instead of having it in main.