I\'m trying to make a simple blackjack program. Sadly, I\'m having problems right off the bat with generating a deck of cards.
#include #inc
I think what you are looking to use is an enumeration. It will make your code clearer and resolve your problem.
enum SUIT { HEART, CLUB, DIAMOND, SPADE }; enum VALUE { ONE, TWO, THREE, ..., TEN, JACK, QUEEN, KING};