復數運算#include<iostream.h>
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
}
標簽:
Complex
double
iostream
include
上傳時間:
2016-06-30
上傳用戶:wang5829