文件名称:34546232
- 所属分类:
- 系统编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-12-16
- 文件大小:
- 5kb
- 下载次数:
- 0次
- 提 供 者:
- 张*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
用运算符重载设计有理分数类,实现+、-、*、/等操作。
提示:
创建一个有理分数类Rational,有两个数据成员,一个构造函数,四个运算符重载函数,一个显示函数和一个约简函数。其中数据成员有分子numerator和分母denominator,构造函数可以避免分母为0,对不是约化型的分数进行约化。显示函数显示计算结果。约简函数对分数进行化简-Design a rational fraction class with operator overloading and achieve+,-,*,/operations. Tip: create a rational fraction of the Rational class has two data members, a constructor, the four operator overloading function and a display function and a reduction function. Which data members numerator and denominator of molecular denominator, constructor to avoid the denominator is 0, not about of scores reduced. The display function displays the calculated results. Reduction function scores simplification
提示:
创建一个有理分数类Rational,有两个数据成员,一个构造函数,四个运算符重载函数,一个显示函数和一个约简函数。其中数据成员有分子numerator和分母denominator,构造函数可以避免分母为0,对不是约化型的分数进行约化。显示函数显示计算结果。约简函数对分数进行化简-Design a rational fraction class with operator overloading and achieve+,-,*,/operations. Tip: create a rational fraction of the Rational class has two data members, a constructor, the four operator overloading function and a display function and a reduction function. Which data members numerator and denominator of molecular denominator, constructor to avoid the denominator is 0, not about of scores reduced. The display function displays the calculated results. Reduction function scores simplification
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1.cpp
1.dsp
1.dsw
1.ncb
1.opt
1.plg