Search:
Forum
Beginners
Slot machine c++ code question
Slot machine c++ code question
Sep 26, 2008 at 8:53pm UTC
Bluejayswhs
(5)
hhhh
Last edited on
Sep 27, 2008 at 5:28pm UTC
Sep 26, 2008 at 10:13pm UTC
jsmith
(5804)
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.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs