|
|
&&
is logical AND (that is what you wantr here)&
is bitwise AND error C2664: 'std::basic_istream<_Elem,_Traits> &std::basic_istream<_Elem,_Traits>::get(_Elem *,std::streamsize)' : cannot convert parameter 1 from 'char' to 'char * |
validateMake(hdl,33,11,cars[size].make,"\tMake must be A (Audi), F (Ford), M (Mercedes) or V (VolksWagon)."); |
|
|
C2664: 'validateMake' : cannot convert parameter 4 from 'char' to 'char []' |
void validateMake(HANDLE hdl, int x, int y, char str[], char errmessage[]); |
void validateMake(HANDLE hdl, int x, int y, char str, char errmessage[]); |