文件名称:fushu
介绍说明--下载内容均来自于网络,请自行研究使用
复数运算#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
}
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
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 63535296fushu.rar 列表 复数运算.txt