文件名称:lab5
介绍说明--下载内容来自于网络,使用问题请自行百度
对于一元二次方程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)
若该方程有两个不相等实根,首先输出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 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.