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; } };
'&' 是否表示作为返回的引用?
谢谢
规范C
是的,你回答了你自己的问题。CDate &仅表示运算符返回对CDate对象的引用。它没有特殊含义,因为它是一个运算符,在任何其他函数中都具有相同的含义。
CDate &
CDate