Advertisement
pichumy

Untitled

Jan 27th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. g++ -c GoodDeck.cpp
  2. GoodDeck.cpp:15:5: error: prototype for ‘int Deck::get_num_cards()’ does not match any in class ‘Deck’
  3. int Deck::get_num_cards()
  4. ^
  5. In file included from GoodDeck.cpp:3:0:
  6. GoodDeck.h:13:7: error: candidate is: int Deck::get_num_cards() const
  7. int get_num_cards() const;
  8. ^
  9. GoodDeck.cpp:20:5: error: prototype for ‘int Deck::get_card(int)’ does not match any in class ‘Deck’
  10. int Deck::get_card(int index)
  11. ^
  12. In file included from GoodDeck.cpp:3:0:
  13. GoodDeck.h:12:15: error: candidate is: const Card* Deck::get_card(int) const
  14. const Card *get_card(int index) const;
  15. ^
  16. In file included from GoodDeck.h:3:0,
  17. from GoodDeck.cpp:3:
  18. Card.h: In member function ‘int Deck::find_index(int, int) const’:
  19. Card.h:8:9: error: ‘int Card::value’ is private
  20. int value;
  21. ^
  22. GoodDeck.cpp:29:16: error: within this context
  23. if((cards[i].value==value) && (cards[i].suit == suit)) return i;
  24. ^
  25. In file included from GoodDeck.h:3:0,
  26. from GoodDeck.cpp:3:
  27. Card.h:7:9: error: ‘int Card::suit’ is private
  28. int suit;
  29. ^
  30. GoodDeck.cpp:29:43: error: within this context
  31. if((cards[i].value==value) && (cards[i].suit == suit)) return i;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement