// // Deck Class Header File // // Described in Chapter 2 of // Data Structures in C++ using the STL // Published by Addison-Wesley, 1997 // Written by Tim Budd, budd@cs.orst.edu // Oregon State University // // Modified by Michael Redmond 3/19/00 // La Salle University // 1) Separated from War assignment // 2) Use vectors instead of arrays // 3) Changed shuffle function to be more understandable # include //# include #include #include #include "card.h" using namespace std; #ifndef DECK_H #define DECK_H class Deck { public: // constructor Deck ( ); // operations void shuffle ( ); bool isEmpty ( ) { return cards.empty(); } Card draw ( ); // show whole deck to check things out void Show (); protected: vector cards; }; #endif