이 함수 선언 내게 오류를 범 :이것이 왼쪽 스트림 연산자에 과부하가 걸리는 올바른 방법입니까? (C는 ++)
ostream& operator<<(ostream& os, hand& obj);
오류는 :
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
손 I가 이루어지는 클래스, 디스플레이 유형 char*
의 공개 데이터의 부재이다.
아무도 내가 뭘 잘못하고 있다고 말할 수 있습니까?