标签:idt lazy 图片 调用 ons operator 出现 默认值 xpl
class Fraction { public: Fraction(int num,int den=1):m_numerator(num),m_denominator(den) { cout << "构造函数被默默调用了哦!!!" << endl; } ~Fraction(){ cout << "析构函数被默默-调用了哦!!!" << endl; } Fraction operator +(const Fraction& f) { return Fraction (......); } private: double m_numerator; double m_denominator; };
注解:
non-explicite-one-argumen-constructor
标签:idt lazy 图片 调用 ons operator 出现 默认值 xpl
原文地址:https://www.cnblogs.com/yibeimingyue/p/13513878.html