Like this.
/*************** *****/
class Card {
public:
Card() : rank(0), suit(0) {}
...
private:
int rank;
int suit;
};
class Cards : public vector<Card> {
public:
Cards();
...
};
/*************** *****/
What about other STL types like string?
Thanks.
/*************** *****/
class Card {
public:
Card() : rank(0), suit(0) {}
...
private:
int rank;
int suit;
};
class Cards : public vector<Card> {
public:
Cards();
...
};
/*************** *****/
What about other STL types like string?
Thanks.
Comment