Complex sum(const Complex& a, const Complex& b) { Complex c; c.repart = a.repart + b.repart; c.impart = a.impart + b.impart; return c; }