文件名称:6_4
-
所属分类:
- 标签属性:
- 上传时间:2014-07-10
-
文件大小:11.35kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
4.创建一个名为RationalNumber的类,使其具有以下功能:
1)创建一个构造函数,它可以避免分母为0,对不是约化性的分数进行约化,并且可以避免分母为负数。
2)重载类的加减乘除运算符
3)重载类的关系运算符和赋值运算符-4 Create a class named RationalNumber, and it has the following features:
1) create a constructor, it avoids the denominator is zero, for the scores is not about resistance reduction, and to avoid the denominator is negative.
2) heavy-duty class arithmetic operators
3) heavy-duty class relational operators and assignment operator
1)创建一个构造函数,它可以避免分母为0,对不是约化性的分数进行约化,并且可以避免分母为负数。
2)重载类的加减乘除运算符
3)重载类的关系运算符和赋值运算符-4 Create a class named RationalNumber, and it has the following features:
1) create a constructor, it avoids the denominator is zero, for the scores is not about resistance reduction, and to avoid the denominator is negative.
2) heavy-duty class arithmetic operators
3) heavy-duty class relational operators and assignment operator
(系统自动生成,下载前可以参看下载内容)
下载文件列表
6_4/6_4.cpp
6_4/6_4.dsp
6_4/6_4.dsw
6_4/6_4.ncb
6_4/6_4.opt
6_4/6_4.plg
6_4/achievement.cpp
6_4/definition.h
6_4/ReadMe.txt
6_4/StdAfx.cpp
6_4/StdAfx.h
6_4
6_4/6_4.dsp
6_4/6_4.dsw
6_4/6_4.ncb
6_4/6_4.opt
6_4/6_4.plg
6_4/achievement.cpp
6_4/definition.h
6_4/ReadMe.txt
6_4/StdAfx.cpp
6_4/StdAfx.h
6_4
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.