#include #include "CardT.h" using namespace std; int main() { CardT card1; CardT card2{SuitT::DIAMOND, 11}; CardT card3{RandomCard()}; int value; SuitT suit; CardT card; card1.suit = SuitT::HEART; card1.value = 2; cout << "The first card is " << CardTToString(card1) << endl; cout << "The second card is " << CardTToString(card2) << endl; cout << "The third card is " << CardTToString(card3) << endl; // let's generate a deck of cards. for (suit = FIRST_SUIT; suit != SuitT::NONE; suit = NextSuit(suit)) { card.suit = suit; for(value = 1; value < 14; value++) { card.value = value; cout << "\t" << CardTToString(card) << endl; } cout << endl << endl; } return 0; }