// An object of type Complex is a complex number. It has // a real part (rePart) and an imaginary part (imPart). struct Complex { double rePart, imPart; }; // sum(a,b,c) sets c = a + b. void sum(const Complex& a, const Complex& b, Complex& c) { c.rePart = a.rePart + b.rePart; c.imPart = a.imPart + b.imPart; }