#include "complex.h" Complex Complex::operator+(const Complex& d) { return Complex(re + d.re, im + d.im); } Complex Complex::operator-(const Complex& d) { return Complex(re - d.re, im - d.im); } Complex& Complex::operator+=(const Complex& d) { re += d.re; im += d.im; return *this; }