文件名称:fraction
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:751.6kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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.
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.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Exercise3/Exercise3/Exercise3.vcproj
Exercise3/Exercise3/ReadMe.txt
Exercise3/Exercise3/stdafx.h
Exercise3/Exercise3/stdafx.cpp
Exercise3/Exercise3/Exercise3.vcproj.N-79BF30D49C474.admin.user
Exercise3/Exercise3/Debug/BuildLog.htm
Exercise3/Exercise3/Debug/Exercise3.exe.embed.manifest
Exercise3/Exercise3/Debug/vc80.idb
Exercise3/Exercise3/Debug/Exercise3.pch
Exercise3/Exercise3/Debug/vc80.pdb
Exercise3/Exercise3/Debug/stdafx.obj
Exercise3/Exercise3/Debug/Exercise3.exe.embed.manifest.res
Exercise3/Exercise3/Debug/Exercise3.exe.intermediate.manifest
Exercise3/Exercise3/Debug/mt.dep
Exercise3/Exercise3/Debug/Exercise3.obj
Exercise3/Exercise3/Debug/Integer.obj
Exercise3/Exercise3/Debug/fraction.obj
Exercise3/Exercise3/Debug
Exercise3/Exercise3/Exercise3.o
Exercise3/Exercise3/fraction.h
Exercise3/Exercise3/Integer.h
Exercise3/Exercise3/Exercise3.cpp
Exercise3/Exercise3/fraction.cpp
Exercise3/Exercise3/Integer.cpp
Exercise3/Exercise3
Exercise3/Exercise3.ncb
Exercise3/Exercise3.sln
Exercise3/Exercise3.suo
Exercise3/debug/Exercise3.pdb
Exercise3/debug/Exercise3.exe
Exercise3/debug/Exercise3.ilk
Exercise3/debug
Exercise3
Exercise3/Exercise3/ReadMe.txt
Exercise3/Exercise3/stdafx.h
Exercise3/Exercise3/stdafx.cpp
Exercise3/Exercise3/Exercise3.vcproj.N-79BF30D49C474.admin.user
Exercise3/Exercise3/Debug/BuildLog.htm
Exercise3/Exercise3/Debug/Exercise3.exe.embed.manifest
Exercise3/Exercise3/Debug/vc80.idb
Exercise3/Exercise3/Debug/Exercise3.pch
Exercise3/Exercise3/Debug/vc80.pdb
Exercise3/Exercise3/Debug/stdafx.obj
Exercise3/Exercise3/Debug/Exercise3.exe.embed.manifest.res
Exercise3/Exercise3/Debug/Exercise3.exe.intermediate.manifest
Exercise3/Exercise3/Debug/mt.dep
Exercise3/Exercise3/Debug/Exercise3.obj
Exercise3/Exercise3/Debug/Integer.obj
Exercise3/Exercise3/Debug/fraction.obj
Exercise3/Exercise3/Debug
Exercise3/Exercise3/Exercise3.o
Exercise3/Exercise3/fraction.h
Exercise3/Exercise3/Integer.h
Exercise3/Exercise3/Exercise3.cpp
Exercise3/Exercise3/fraction.cpp
Exercise3/Exercise3/Integer.cpp
Exercise3/Exercise3
Exercise3/Exercise3.ncb
Exercise3/Exercise3.sln
Exercise3/Exercise3.suo
Exercise3/debug/Exercise3.pdb
Exercise3/debug/Exercise3.exe
Exercise3/debug/Exercise3.ilk
Exercise3/debug
Exercise3
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.