Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
class CDate { // some declarations public: CDate& operator ++ () { // increment function; return *this; } };
'&'は、戻り値である参照を意味しますか?
ありがとう
SpecC
はい、あなたはあなた自身の質問に答えました。CDate &単に、オペレーターがオブジェクトへの参照を返すことを意味しCDateます。演算子であるため特別な意味はありません。他の関数でも同じ意味です。
CDate &
CDate