考试中遇到的问题,实在不会了

考试中遇到的问题,实在不会了,考试中遇到的问题,实在不会了,问问大家怎么做

img

你可以参考一下,希望采纳

//拷贝构造函数    
Complex::Complex(const Complex&c) 
{
  real = c.real;
  image = c.image;
}   
    
    
//+
Complex Complex::operator+(const Complex &c)const
{
    Complex c1;
    c1.real = real + c.real;
    c1.imag = imag + c.imag;
    return c1;
}

//+=
Complex& operator+=(Complex &c1,const Complex &c2)
{
    c1.real = c1.real + c2.real;
    c1.imag = c1.imag + c2.imag;
    return c1;
}