文件名称:34546232
-
所属分类:
- 标签属性:
- 上传时间:2013-01-03
-
文件大小:5.3kb
-
已下载: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
1.dsp
1.dsw
1.ncb
1.opt
1.plg
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
