havent been programming recently but school just finished so i got back to it, but im getta couple wierd errors that i cant straighten out
i have this code:
Code:P1_Values.push_back(deckValues[x]); deckValues.erase(x);
and these errors:
no matching function for call to ` std::vector<int, std::allocator<int> >::erase(int&)'
error C:\Dev-Cpp\include\c++\3.3.1\bits\vector.tcc:105 candidates are: __gnu_cxx::__normal_iterator<_Tp*, std::vector<_Tp, _Alloc> >
i went to the msdn site and looked for their documentation on the erase() function and the only difference between their sample code and mine is that they use an iterator and i use an integer. so i tried using the iterator but that and didnt work either.
any ideas on why its not working?