Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. istream& operator>> (istream& is, Deck& deck) {
  2. string inputString;
  3. for (int i = 0; i < DECK_SIZE; i++) {
  4. is >> inputString;
  5. Card* ptrCard = new Card(inputString);
  6. deck.deckObjects[i] = ptrCard;
  7. }
  8. return is;
  9. }
  10.  
  11. istream& operator>> (istream& is, Game& game) {
  12. is >> game.gameDeck;
  13. return is;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement