文件名称:4_3
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-04-13
- 文件大小:
- 4.49mb
- 下载次数:
- 0次
- 提 供 者:
- 刘**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实现一个表示分数的Fraction类。在该类中有两个数据成员分别用于存储分数的分子和分母。函数成员中包含一个设置分子和分母的函数assign(),转换成double 类型数值的函数convert(),交换分子和分母的函数invert()以及一个输出分数的函数print(),请注意输出结果格式:若分子分母同时为0,则输出字符串“#NAN”;若只有分母为0,则输出字符串“#INF”;其余情况输出最简分式,即最大公因子已被约去后的形式;当分子为0,分母为负数时,注意结果应输出0,而非“-0”。
-Represents a fraction of the Fraction class. Numerator and denominator of the two data members for storing scores in the class. Function members contains a set of the numerator and denominator assign () function converts the double function of the type of values the convert () to exchange the numerator and denominator of the invert () function and an output score print () function, Please note that the format of the output results : If the numerator and denominator is 0, the output string " # NAN" if only the denominator is 0, the output string " # INF" remaining cases the output is the most simple fractional greatest common factor is about to go the form When the molecule is 0, the denominator is negative, note that the results should be output 0 instead of-0.
-Represents a fraction of the Fraction class. Numerator and denominator of the two data members for storing scores in the class. Function members contains a set of the numerator and denominator assign () function converts the double function of the type of values the convert () to exchange the numerator and denominator of the invert () function and an output score print () function, Please note that the format of the output results : If the numerator and denominator is 0, the output string " # NAN" if only the denominator is 0, the output string " # INF" remaining cases the output is the most simple fractional greatest common factor is about to go the form When the molecule is 0, the denominator is negative, note that the results should be output 0 instead of-0.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
4_3
...\4_3
...\...\4_3.cpp
...\...\4_3.vcxproj
...\...\4_3.vcxproj.filters
...\...\4_3.vcxproj.user
...\...\Debug
...\...\.....\4_3.exe.embed.manifest
...\...\.....\4_3.exe.embed.manifest.res
...\...\.....\4_3.exe.intermediate.manifest
...\...\.....\4_3.lastbuildstate
...\...\.....\4_3.log
...\...\.....\4_3.obj
...\...\.....\4_3_manifest.rc
...\...\.....\CL.read.1.tlog
...\...\.....\CL.write.1.tlog
...\...\.....\link-cvtres.read.1.tlog
...\...\.....\link-cvtres.write.1.tlog
...\...\.....\link.8780-cvtres.read.1.tlog
...\...\.....\link.8780-cvtres.write.1.tlog
...\...\.....\link.8780.read.1.tlog
...\...\.....\link.8780.write.1.tlog
...\...\.....\link.read.1.tlog
...\...\.....\link.write.1.tlog
...\...\.....\mt.read.1.tlog
...\...\.....\mt.write.1.tlog
...\...\.....\rc.read.1.tlog
...\...\.....\rc.write.1.tlog
...\...\.....\vc100.idb
...\...\.....\vc100.pdb
...\4_3.sdf
...\4_3.sln
...\4_3.suo
...\Debug
...\.....\4_3.exe
...\.....\4_3.ilk
...\.....\4_3.pdb
...\ipch
...\....\4_3-6cc2faf1
...\....\............\4_3-8153ac92.ipch