文件名称:8_2
介绍说明--下载内容均来自于网络,请自行研究使用
已知一个有理数类Zrf_Ratio,实现如下的操作符重载形式:
friend zrf_Ratio operator-(const zrf_Ratio&)
friend zrf_Ratio operator+(const zrf_Ratio&, const zrf_Ratio&)
friend zrf_Ratio operator-(const zrf_Ratio&, const zrf_Ratio&)
friend zrf_Ratio operator*(const zrf_Ratio&, const zrf_Ratio&)
friend zrf_Ratio operator/(const zrf_Ratio&, const zrf_Ratio&)
-Given a rational number class Zrf_Ratio, to achieve the following operator overloads: friend zrf_Ratio operator-(const zrf_Ratio & ) friend zrf_Ratio operator+ (const zrf_Ratio & , const zrf_Ratio & ) friend zrf_Ratio operator-(const zrf_Ratio & , const zrf_Ratio & ) friend zrf_Ratio operator* (const zrf_Ratio & , const zrf_Ratio & ) friend zrf_Ratio operator/(const zrf_Ratio & , const zrf_Ratio & )
friend zrf_Ratio operator-(const zrf_Ratio&)
friend zrf_Ratio operator+(const zrf_Ratio&, const zrf_Ratio&)
friend zrf_Ratio operator-(const zrf_Ratio&, const zrf_Ratio&)
friend zrf_Ratio operator*(const zrf_Ratio&, const zrf_Ratio&)
friend zrf_Ratio operator/(const zrf_Ratio&, const zrf_Ratio&)
-Given a rational number class Zrf_Ratio, to achieve the following operator overloads: friend zrf_Ratio operator-(const zrf_Ratio & ) friend zrf_Ratio operator+ (const zrf_Ratio & , const zrf_Ratio & ) friend zrf_Ratio operator-(const zrf_Ratio & , const zrf_Ratio & ) friend zrf_Ratio operator* (const zrf_Ratio & , const zrf_Ratio & ) friend zrf_Ratio operator/(const zrf_Ratio & , const zrf_Ratio & )
(系统自动生成,下载前可以参看下载内容)
下载文件列表
8_2.cpp