Complex Complex::operator+(const Complex &other)
{
int r = real_+other.real_;
int i = img_ +other.img_;
return Complex(r,i);
{
int r = real_+other.real_;
int i = img_ +other.img_;
return Complex(r,i);
}
等价 C = A.oprator + B