Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Card.h
- #ifndef CARD_H
- #define CARD_H
- #include <iostream>
- #include <sstream>
- static std::string suits[4] {"Diamonds","Clubs","Hearts","Spades"};
- static std::string faces[13] {"Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack", "Queen", "King"};
- enum face { Ace, Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten, Jack, Queen, King};
- enum suit { Diamonds, Clubs, Hearts, Spades};
- class Card
- {
- public:
- Card(face,suit);
- Card();
- ~Card();
- std::string toString();
- void setVal(face,suit);
- protected:
- private:
- face cardFace;
- suit cardSuit;
- };
- #endif // CARD_H
Add Comment
Please, Sign In to add comment