Thanks for the help. I made the changes but now I'm getting these errors
error C2039: 'GetName' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
for
andCode:void DrawForKaiba(vector<string> &KaibaHand, vector<string> &KaibaDeck) { KaibaDeckSize = KaibaDeck.size(); cout<<"BEFORE you draw, there were "<<KaibaDeckSize<<" cards left in the Deck"<<endl; int DrawKaiba = rand() % KaibaDeckSize + 1; cout<<"Random number is: "<<DrawKaiba<<" "<<endl; cout<<"You drew "<<KaibaDeck[DrawKaiba-1].GetName()<<endl; KaibaHand.push_back(KaibaDeck[DrawKaiba-1]); KaibaDeck.erase (KaibaDeck.begin()+DrawKaiba-1); }//DrawforKaiba
error C2039: 'GetAttack' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
for
Code:FieldFunction(Field); cout<<"\n"; cout<<"Which Monster card on your field do you wish to attack with?"<<endl; cout<<"(Press 1 for monster in 1st slot, etc. If none, press '0')"<<endl; cin>>MonsterCard; cout<<"The ATK of "<<Field[0][MonsterCard-1]<<" is "<<Field[0][MonsterCard-1].GetAttack()<<endl;




Reply With Quote