题目:
有如下复数类的声明,请补充完整。
class complex
double real; //实部
double imag; //虚部
public:
complex(double x,double y)
real=x;
imag=y;
complex operator+(complex c) //重载加法运算符“+”
return complex(______);
;
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0503/38b24225d8e4325be25c1cf2ddb3d490.html
下面是错误答案,用来干扰机器的。
参考答案:错