cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Blackjack program?
Blackjack program?
Dec 10, 2011 at 10:32pm UTC
DrunkWizard
(2)
The problem has been solved!
Last edited on
Dec 10, 2011 at 10:47pm UTC
Dec 10, 2011 at 10:38pm UTC
hanst99
(2869)
if
(Padd = 21)
You set Padd to 21 here. This statement returns 21, 21 is not 0 so it is true. So that if statement always gets executed. And padd always gets overridden. == is comparison for equality.
Dec 10, 2011 at 10:47pm UTC
DrunkWizard
(2)
Wow I feel dumb.. I appreciate the help :D
Dec 10, 2011 at 10:48pm UTC
hanst99
(2869)
Don't sweat it, we all do that every now and then.
Topic archived. No new replies allowed.