类方法实现复数加减运算

问题描述:

类方法实现复数加减运算

#include#include using namespace std;class complex{public:complex(){real=0;imag=0;}complex(double r,double i){real=r;imag=i;}complex operator+(complex &c);complex operator-(complex &c);void display(){...