Quote:
Originally posted by dirs
Where should I put
typedef vector<pair<int,int> > VPairs;
VPairs Deck; ??
|
I put it under card.h before the class card starts and i got 7 errors??
c:\blackjack\card.h(51) : error C2040: 'i' : 'struct std::pair<int,int> *' differs in levels of indirection from 'int'
c:\blackjack\card.h(51) : error C2446: '!=' : no conversion from 'struct std::pair<int,int> *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\blackjack\card.h(51) : error C2040: '!=' : 'int' differs in levels of indirection from 'struct std::pair<int,int> *'
c:\blackjack\card.h(54) : error C2100: illegal indirection
c:\blackjack\card.h(54) : error C2228: left of '.first' must have class/struct/union type
c:\blackjack\card.h(54) : error C2100: illegal indirection
c:\blackjack\card.h(54) : error C2228: left of '.second' must have class/struct/union type
Error executing cl.exe.
Main.exe - 7 error(s), 0 warning(s)