#include #include "deck.h" #include "card.h" #include "hand.h" void Print(const Deck& d) // post: print all cards in the Deck d // (cards still in d when done) { Deck copy(d); // make a copy to get cards from int count = d.Size(); int k; for(k=0; k < count; k++) { cout << copy.GetCard() << endl; } } void Print(const apvector & hand) { int k; cout << "------------" << endl; for (k=0; k< hand.length(); k++) { cout << hand[k] << endl; } cout << "------------" << endl; } int main() { const int HAND_SIZE = 5; Deck d; int k; Print(d); cout << "\n---after shuffling---\n" << endl; d.Shuffle(); Print(d); apvector player(HAND_SIZE); for(k=0; k < HAND_SIZE; k++) { player[k] = d.GetCard(); } Print(player); return 0; }