Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g++ -c GoodDeck.cpp
- GoodDeck.cpp:15:5: error: prototype for ‘int Deck::get_num_cards()’ does not match any in class ‘Deck’
- int Deck::get_num_cards()
- ^
- In file included from GoodDeck.cpp:3:0:
- GoodDeck.h:13:7: error: candidate is: int Deck::get_num_cards() const
- int get_num_cards() const;
- ^
- GoodDeck.cpp:20:5: error: prototype for ‘int Deck::get_card(int)’ does not match any in class ‘Deck’
- int Deck::get_card(int index)
- ^
- In file included from GoodDeck.cpp:3:0:
- GoodDeck.h:12:15: error: candidate is: const Card* Deck::get_card(int) const
- const Card *get_card(int index) const;
- ^
- In file included from GoodDeck.h:3:0,
- from GoodDeck.cpp:3:
- Card.h: In member function ‘int Deck::find_index(int, int) const’:
- Card.h:8:9: error: ‘int Card::value’ is private
- int value;
- ^
- GoodDeck.cpp:29:16: error: within this context
- if((cards[i].value==value) && (cards[i].suit == suit)) return i;
- ^
- In file included from GoodDeck.h:3:0,
- from GoodDeck.cpp:3:
- Card.h:7:9: error: ‘int Card::suit’ is private
- int suit;
- ^
- GoodDeck.cpp:29:43: error: within this context
- if((cards[i].value==value) && (cards[i].suit == suit)) return i;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement