文件名称:8_8
介绍说明--下载内容均来自于网络,请自行研究使用
已知一个有理数类Zrf_Ratio,实现如下的操作符重载形式:
friend std::ostream& operator< (std::ostream&, const zrf_Ratio&)
friend std::istream& operator>>(std::istream&, zrf_Ratio&)
friend bool operator==(const zrf_Ratio&, const zrf_Ratio&)
friend bool operator<(const zrf_Ratio&, const zrf_Ratio&)
-Known type of a rational number Zrf_Ratio, the achievement of the following form of operator overloading: friend std:: ostream & operator < < (std:: ostream & , const zrf_Ratio & ) friend std:: istream & operator> > (std:: istream & , zrf_Ratio & ) friend bool operator == (const zrf_Ratio & , const zrf_Ratio & ) friend bool operator < (const zrf_Ratio & , const zrf_Ratio & )
friend std::ostream& operator< (std::ostream&, const zrf_Ratio&)
friend std::istream& operator>>(std::istream&, zrf_Ratio&)
friend bool operator==(const zrf_Ratio&, const zrf_Ratio&)
friend bool operator<(const zrf_Ratio&, const zrf_Ratio&)
-Known type of a rational number Zrf_Ratio, the achievement of the following form of operator overloading: friend std:: ostream & operator < < (std:: ostream & , const zrf_Ratio & ) friend std:: istream & operator> > (std:: istream & , zrf_Ratio & ) friend bool operator == (const zrf_Ratio & , const zrf_Ratio & ) friend bool operator < (const zrf_Ratio & , const zrf_Ratio & )
(系统自动生成,下载前可以参看下载内容)
下载文件列表
8_作业8.doc