注意:实验报告不全,参考价值:函数实现。 1.1 用C++实现复数类,并为其定义必要的运算符。 struct Complex{ double real_; double image_; Complex (void); Complex (double const& real); Complex (double const& real, double const& imag); Complex (Complex const& v); Complex operator+ (Complex const& a) const; Complex operator- (Complex const& a) co