Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Deck::Deck()
- {
- this->size = 52;
- this->top = 0;
- this->cards = new Card[size];
- }
- Deck::Deck(const Deck &original)
- {
- this->size = original.size;
- this->top = original.top;
- this->cards = new Card[this->size];
- for(int i = 0; i < this->size; i++)
- this->cards[i] = original.cards[i];
- }
- Deck::~Deck()
- {
- delete[] cards;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement