
#includeusing namespace std; class CComplex { public: CComplex(double r,double m=0):re(r),im(m) {} CComplex operator+(CComplex &c) { return CComplex(re+c.re,im+c.im); } void show() { if(im>=0) cout< 欢迎分享,转载请注明来源:内存溢出

#includeusing namespace std; class CComplex { public: CComplex(double r,double m=0):re(r),im(m) {} CComplex operator+(CComplex &c) { return CComplex(re+c.re,im+c.im); } void show() { if(im>=0) cout< 欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)