小编Spe*_*ecC的帖子

"&"在一类的一元运算符中意味着什么?

class CDate
{
  // some declarations
  public: 
    CDate& operator ++ ()
    {
      // increment function;     
      return *this; 
    }
};
Run Code Online (Sandbox Code Playgroud)

'&'是否意味着作为回报的参考?

谢谢

SpecC

c++ reference class increment

2
推荐指数
1
解决办法
159
查看次数

标签 统计

c++ ×1

class ×1

increment ×1

reference ×1