CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程 C#编程

文件名称:4_3

  • 所属分类:
  • 标签属性:
  • 上传时间:
    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.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

4_3/
4_3/4_3/
4_3/4_3/4_3.cpp
4_3/4_3/4_3.vcxproj
4_3/4_3/4_3.vcxproj.filters
4_3/4_3/4_3.vcxproj.user
4_3/4_3/Debug/
4_3/4_3/Debug/4_3.exe.embed.manifest
4_3/4_3/Debug/4_3.exe.embed.manifest.res
4_3/4_3/Debug/4_3.exe.intermediate.manifest
4_3/4_3/Debug/4_3.lastbuildstate
4_3/4_3/Debug/4_3.log
4_3/4_3/Debug/4_3.obj
4_3/4_3/Debug/4_3_manifest.rc
4_3/4_3/Debug/CL.read.1.tlog
4_3/4_3/Debug/CL.write.1.tlog
4_3/4_3/Debug/cl.command.1.tlog
4_3/4_3/Debug/link-cvtres.read.1.tlog
4_3/4_3/Debug/link-cvtres.write.1.tlog
4_3/4_3/Debug/link.8780-cvtres.read.1.tlog
4_3/4_3/Debug/link.8780-cvtres.write.1.tlog
4_3/4_3/Debug/link.8780.read.1.tlog
4_3/4_3/Debug/link.8780.write.1.tlog
4_3/4_3/Debug/link.command.1.tlog
4_3/4_3/Debug/link.read.1.tlog
4_3/4_3/Debug/link.write.1.tlog
4_3/4_3/Debug/mt.command.1.tlog
4_3/4_3/Debug/mt.read.1.tlog
4_3/4_3/Debug/mt.write.1.tlog
4_3/4_3/Debug/rc.command.1.tlog
4_3/4_3/Debug/rc.read.1.tlog
4_3/4_3/Debug/rc.write.1.tlog
4_3/4_3/Debug/vc100.idb
4_3/4_3/Debug/vc100.pdb
4_3/4_3.sdf
4_3/4_3.sln
4_3/4_3.suo
4_3/Debug/
4_3/Debug/4_3.exe
4_3/Debug/4_3.ilk
4_3/Debug/4_3.pdb
4_3/ipch/
4_3/ipch/4_3-6cc2faf1/
4_3/ipch/4_3-6cc2faf1/4_3-8153ac92.ipch

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com