文件名称:fraction
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 752kb
- 下载次数:
- 0次
- 提 供 者:
- ye***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
1.自定义分数类fraction,使用该类可以完成分数的输入、分数的加、减、乘、除二目运算和一目减运算、分数的约分操作、分数的通分操作、分数的倒数运算、对两个分数进行六种比较运算、以及对分数的输出等操作。
2.改造上述分数类,将其中使用的普通函数尽量改写成运算符重载函数。如,可重载+、-、*、/、>、>=、<、<=、==、!=,以实现分数的各种运算。并且实现分数与整数的混合运算。
3.从分数类派生出一个用来描述整型的Integer类,完善整型类Integer,使其能完成整数的各种操作。为分数类fraction和整型类Integer各增加一个成员函数digit_number(),用来统计一个分数中数字字符的数量(如:13/34,数字字符的数量为4)和一个整数中的数字字符的数量(如:13345,数字字符的数量为5)。-1. Custom Class Score fraction, the use of such scores can be input, scores of add, subtract, multiply, with the exception of the second head and a head operation by operation, scores of some sub-operation, scores of通分operation, scores of the last operation of the two scores for the six comparison operators, as well as scores of operation of the output.相关搜索: fraction
13
使用
分数类
fraction
定义
整数
类Integer
2.改造上述分数类,将其中使用的普通函数尽量改写成运算符重载函数。如,可重载+、-、*、/、>、>=、<、<=、==、!=,以实现分数的各种运算。并且实现分数与整数的混合运算。
3.从分数类派生出一个用来描述整型的Integer类,完善整型类Integer,使其能完成整数的各种操作。为分数类fraction和整型类Integer各增加一个成员函数digit_number(),用来统计一个分数中数字字符的数量(如:13/34,数字字符的数量为4)和一个整数中的数字字符的数量(如:13345,数字字符的数量为5)。-1. Custom Class Score fraction, the use of such scores can be input, scores of add, subtract, multiply, with the exception of the second head and a head operation by operation, scores of some sub-operation, scores of通分operation, scores of the last operation of the two scores for the six comparison operators, as well as scores of operation of the output.相关搜索: fraction
13
使用
分数类
fraction
定义
整数
类Integer
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Exercise3
.........\debug
.........\.....\Exercise3.exe
.........\.....\Exercise3.ilk
.........\.....\Exercise3.pdb
.........\Exercise3
.........\.........\Debug
.........\.........\.....\BuildLog.htm
.........\.........\.....\Exercise3.exe.embed.manifest
.........\.........\.....\Exercise3.exe.embed.manifest.res
.........\.........\.....\Exercise3.exe.intermediate.manifest
.........\.........\.....\Exercise3.obj
.........\.........\.....\Exercise3.pch
.........\.........\.....\fraction.obj
.........\.........\.....\Integer.obj
.........\.........\.....\mt.dep
.........\.........\.....\stdafx.obj
.........\.........\.....\vc80.idb
.........\.........\.....\vc80.pdb
.........\.........\Exercise3.cpp
.........\.........\Exercise3.o
.........\.........\Exercise3.vcproj
.........\.........\Exercise3.vcproj.N-79BF30D49C474.admin.user
.........\.........\fraction.cpp
.........\.........\fraction.h
.........\.........\Integer.cpp
.........\.........\Integer.h
.........\.........\ReadMe.txt
.........\.........\stdafx.cpp
.........\.........\stdafx.h
.........\Exercise3.ncb
.........\Exercise3.sln
.........\debug
.........\.....\Exercise3.exe
.........\.....\Exercise3.ilk
.........\.....\Exercise3.pdb
.........\Exercise3
.........\.........\Debug
.........\.........\.....\BuildLog.htm
.........\.........\.....\Exercise3.exe.embed.manifest
.........\.........\.....\Exercise3.exe.embed.manifest.res
.........\.........\.....\Exercise3.exe.intermediate.manifest
.........\.........\.....\Exercise3.obj
.........\.........\.....\Exercise3.pch
.........\.........\.....\fraction.obj
.........\.........\.....\Integer.obj
.........\.........\.....\mt.dep
.........\.........\.....\stdafx.obj
.........\.........\.....\vc80.idb
.........\.........\.....\vc80.pdb
.........\.........\Exercise3.cpp
.........\.........\Exercise3.o
.........\.........\Exercise3.vcproj
.........\.........\Exercise3.vcproj.N-79BF30D49C474.admin.user
.........\.........\fraction.cpp
.........\.........\fraction.h
.........\.........\Integer.cpp
.........\.........\Integer.h
.........\.........\ReadMe.txt
.........\.........\stdafx.cpp
.........\.........\stdafx.h
.........\Exercise3.ncb
.........\Exercise3.sln