InterviewGuide
InterviewGuide copied to clipboard
C++ 基础语法29. +
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
原文: A& operator=(const A& a){ num1 = a.num1 + 1; num2 = a.num2 + 1; return *this; }; 是不是应该这样: A& operator=(const A& a) { this->num1 = a.num1 + 1; this->num2 = a.num2 + 1; return *this; };