I am trying to encode a blackjack game. Until the last part, everything went well. My code is as follows:
#include <iostream>
Now that I have completed it, I get the following:
Dealer hand: K 3 13 Player hand: 5 Q 27
The dealerβs hand is correct, however, since 5 + Q should be 15, not 27, something is wrong, which causes incorrect printing, but so far I have not found it. Can anyone help?
source share