文件名称:6_4
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2014-07-10
- 文件大小:
- 11kb
- 下载次数:
- 0次
- 提 供 者:
- zhaox******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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.dsp
...\6_4.dsw
...\6_4.ncb
...\6_4.opt
...\6_4.plg
...\achievement.cpp
...\definition.h
...\ReadMe.txt
...\StdAfx.cpp
...\StdAfx.h
6_4