Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g++ main.cpp GoodDeck.cpp Card.cpp
- main.cpp: In function ‘int main(int, char**)’:
- main.cpp:9:2: error: ‘vector’ is not a member of ‘std’
- std::vector<Card> hand;
- ^
- main.cpp:9:18: error: expected primary-expression before ‘>’ token
- std::vector<Card> hand;
- ^
- main.cpp:9:20: error: ‘hand’ was not declared in this scope
- std::vector<Card> hand;
- ^
- main.cpp:31:26: error: request for member ‘print_card’ in ‘fulldeck.Deck::get_card(i)’, which is of pointer type ‘const Card*’ (maybe you meant to use ‘->’ ?)
- fulldeck.get_card(i).print_card(stdout);
- ^
- main.cpp:38:27: error: ‘class Deck’ has no member named ‘getcard’
- printf(": %d\n",fulldeck.getcard(5).compare(fulldeck.get_card(17)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement