资 源 简 介
复数运算#include
class Complex
{ public:
Complex( double r =0, double i =0 )
Complex(int a) { Real = a Image = 0 }
void print() const
friend Complex operator+ ( const Complex & c1, const Complex & c2 )
friend Complex operator- ( const Complex & c1, const Complex & c2 )
friend Complex operator- ( const Complex & c )
private:
double Real, Image
}