InterviewGuide icon indicating copy to clipboard operation
InterviewGuide copied to clipboard

C++ 基础语法29. +

Open QinglinQAQ opened this issue 1 year ago • 2 comments

QinglinQAQ avatar Dec 20 '23 06:12 QinglinQAQ

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

1031507008 avatar Dec 20 '23 06:12 1031507008

原文: 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; };

QinglinQAQ avatar Dec 20 '23 06:12 QinglinQAQ