この関数宣言は私にエラーを与えます:
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
handは私が作成したクラスであり、displayはタイプのパブリックデータメンバーですchar*
。
誰かが私が間違っていることを教えてもらえますか?