文件名称: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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.