Slot machine c++ code question

hhhh
Last edited on
Your switch() only executes if choice is 1.

What you want to do is check the bank balance when they type 3 to make sure there are funds. If there are, then spin. If there aren't, then output an error and don't spin.

Topic archived. No new replies allowed.