文件名称:Rational-fraction-equation
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:45.09kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
用来求解有理数分式方程。为它设计两个数据成员,一个作为分子,另一个作为分母。分母不能为0。有理数1/2可以使用这个类的对象r表示为r(1,2)。需要完成如下操作:
如果分子和分母友公约数,就应该进行化简;
有理数可以进行四则运算,需要重载运算符;
重载流运算符,可以直接输入分子和分母,以及作为整体输出
-Used for solving the rational fraction equation. For its design two data members, a as a molecular, another as the denominator. The common denominator can t is 0. The rational number 1/2 can use an object of this class r said to r (1, 2). Need to complete the following operation:
If the molecules and denominator when friends, should be reduction
The rational number can be arithmetic, need to override operator
Overloaded operators, can be directly flow input molecule and denominator, as well as the overall output
如果分子和分母友公约数,就应该进行化简;
有理数可以进行四则运算,需要重载运算符;
重载流运算符,可以直接输入分子和分母,以及作为整体输出
-Used for solving the rational fraction equation. For its design two data members, a as a molecular, another as the denominator. The common denominator can t is 0. The rational number 1/2 can use an object of this class r said to r (1, 2). Need to complete the following operation:
If the molecules and denominator when friends, should be reduction
The rational number can be arithmetic, need to override operator
Overloaded operators, can be directly flow input molecule and denominator, as well as the overall output
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Rational fraction equation.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.