文件名称:lab5

  • 所属分类:
  • Windows编程
  • 资源属性:
  • [C/C++]
  • 上传时间:
  • 2018-04-11
  • 文件大小:
  • 5.12mb
  • 下载次数:
  • 0次
  • 提 供 者:
  • tihd*****
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

对于一元二次方程ax^2 + bx + c = 0,解可以分为很多情况。

若该方程有两个不相等实根,首先输出1,换行,然后从小到大输出两个实根,两个根以空格分隔,换行;

若该方程有两个相等实根,首先输出2,换行,然后输出这个实根,换行;

若该方程有一对共轭复根,输出3,换行;

若该方程无解,输出4,换行;

若该方程有无穷个解,输出5,换行;

若该方程只有一个根,首先输出6,换行,然后输出这个根,换行;

要求使用c++ class编写程序。可以创建如下class(For one equation two times, ax^2 + BX + C = 0, solutions can be divided into many cases.



If the equation has two unequal real roots, first output 1, line change, then output two real roots from small to large, and two roots are separated by spaces.



If the equation has two equal real roots, first output 2, line feed, then output the real root and line it.



If the equation has a pair of conjugate complex roots, output 3, line;



If the equation has no solution, the output is 4.



If the equation has infinite solutions, the output is 5.



If the equation has only one root, first output 6, then line it, then output the root and line it.



The program is required to be written with c++ class. You can create the following class)
相关搜索: C++

(系统自动生成,下载前可以参看下载内容)

下载文件列表

文件名大小更新时间
lab5 0 2018-04-11
lab5\Debug 0 2018-04-10
lab5\Debug\lab5.exe 38912 2018-04-11
lab5\Debug\lab5.ilk 447204 2018-04-11
lab5\Debug\lab5.pdb 666624 2018-04-11
lab5\ipch 0 2018-04-11
lab5\ipch\lab5-d2d66191 0 2018-04-11
lab5\ipch\lab5-d2d66191\lab5-622170b0.ipch 16384000 2018-04-11
lab5\lab5 0 2018-04-11
lab5\lab5\Debug 0 2018-04-11
lab5\lab5\Debug\CL.read.1.tlog 4600 2018-04-11
lab5\lab5\Debug\CL.write.1.tlog 362 2018-04-11
lab5\lab5\Debug\cl.command.1.tlog 670 2018-04-11
lab5\lab5\Debug\lab5.exe.embed.manifest 406 2018-04-10
lab5\lab5\Debug\lab5.exe.embed.manifest.res 472 2018-04-10
lab5\lab5\Debug\lab5.exe.intermediate.manifest 381 2018-04-11
lab5\lab5\Debug\lab5.lastbuildstate 92 2018-04-11
lab5\lab5\Debug\lab5.log 2194 2018-04-11
lab5\lab5\Debug\lab5.vcxprojResolveAssemblyReference.cache 713 2018-04-10
lab5\lab5\Debug\lab5.write.1.tlog 0 2018-04-10
lab5\lab5\Debug\lab5_1.obj 51563 2018-04-11
lab5\lab5\Debug\lab5_manifest.rc 198 2018-04-10
lab5\lab5\Debug\link-cvtres.read.1.tlog 2 2018-04-11
lab5\lab5\Debug\link-cvtres.write.1.tlog 2 2018-04-11
lab5\lab5\Debug\link.7344-cvtres.read.1.tlog 2 2018-04-11
lab5\lab5\Debug\link.7344-cvtres.write.1.tlog 2 2018-04-11
lab5\lab5\Debug\link.7344.read.1.tlog 2 2018-04-11
lab5\lab5\Debug\link.7344.write.1.tlog 2 2018-04-11
lab5\lab5\Debug\link.command.1.tlog 1494 2018-04-11
lab5\lab5\Debug\link.read.1.tlog 2892 2018-04-11
lab5\lab5\Debug\link.write.1.tlog 778 2018-04-11
lab5\lab5\Debug\mt.command.1.tlog 372 2018-04-11
lab5\lab5\Debug\mt.read.1.tlog 318 2018-04-11
lab5\lab5\Debug\mt.write.1.tlog 318 2018-04-11
lab5\lab5\Debug\rc.command.1.tlog 510 2018-04-10
lab5\lab5\Debug\rc.read.1.tlog 290 2018-04-10
lab5\lab5\Debug\rc.write.1.tlog 298 2018-04-10
lab5\lab5\Debug\vc100.idb 224256 2018-04-11
lab5\lab5\Debug\vc100.pdb 266240 2018-04-11
lab5\lab5\lab5.vcxproj 3916 2018-04-10
lab5\lab5\lab5.vcxproj.filters 944 2018-04-10
lab5\lab5\lab5.vcxproj.user 143 2018-04-10
lab5\lab5\lab5_1.cpp 1007 2018-04-11
lab5\lab5\lab5_1.zip 514 2018-04-11
lab5\lab5.sdf 6639616 2018-04-11
lab5\lab5.sln 879 2018-04-10
lab5\lab5.suo 11776 2018-04-11

相关说明

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

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org