// partly fixed : adding number + complex works #include class Complex { double re, im; public: Complex() : re(0.0),im(0.0) {} Complex(double r, double i) { re = r; im = i; } double real() const {return re ;} double imag() const {return im ;} friend Complex operator+(const double, const Complex z); Complex operator+(const Complex z){ Complex ctmp; ctmp.re = re+z.re; ctmp.im = im+z.im; return ctmp; } }; Complex operator+(const double d, const Complex z){ Complex sum(d+z.real(),z.imag()); return sum; } int main() { Complex a = Complex( 1.2, 3.3 ); Complex b = Complex( 1.4, 2.4 ); Complex c ; c = a + b; std::cout<