类方法实现复数加减运算
人气:146 ℃ 时间:2020-01-29 20:08:40
解答
#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(){...
推荐
猜你喜欢