I get this:
Code:error C2664: 'std::list<_Ty>::push_front' : cannot convert parameter 1 from 'std::list<_Ty>::_Iterator<_Secure_validation>' to 'const Card &'Code:void Player::PickupCards(const int NumberOfCards) // pickup a certain amount of cards from our global deck { EndGame(); // check to see if the deck vector is empty, ifso endgame, display winner int Count = 0; // counter to end loop when == numberofcards we want to take for (list <Card>::iterator i = Deck.Contents.begin(); i != Deck.Contents.end(); ++i) // go backwards.... { Hand.push_front(i); // here




Reply With Quote