This function declaration gives me errors:
ostream& operator<<(ostream& os, hand& obj);
The errors are:
error C2143: syntax error : missing ';' before '&'
error C4430: missing type specifier
error C2065: 'os' : undeclared identifier
error C2065: 'obj' : undeclared identifier
error C2275: 'hand' : illegal use of this type as an expression
see declaration of 'hand'
error C4430: missing type specifier
hand is a class I made, display is a public data member of type char*
.
Can anybody tell me what I'm doing wrong?