文件名称:C4-3
介绍说明--下载内容来自于网络,使用问题请自行百度
对于一元二次方程ax^2 + bx + c 0,解可以分为很多情况。
若该方程有两个不相等实根,首先输出1,换行,然后从小到大输出两个实根,换行;
若该方程有两个相等实根,首先输出2,换行,然后输出这个这个实根,换行;
若该方程有一对共轭复根,输出3,换行;
若该方程有无解,输出4,换行;
若该方程有无穷个解,输出5,换行;
若该方程只有一个根,首先输出6,换行,然后输出这个跟,换行;-For a quadratic equation ax ^ 2+ bx+ c 0, the solution can be divided into many situations. If the equation has two unequal real roots, the first output 1, line breaks, and then small to large output two real roots, wrap if the equation has two equal real roots, first output 2, line feed, then output this the real roots, wrap if the equation has a pair of complex conjugate roots, output 3, wrap if the equation whether the solution, output 4, line if the equation has an infinite number of solutions, output 5, line if the equation has only one root first output 6, line feed, then output this with line breaks
若该方程有两个不相等实根,首先输出1,换行,然后从小到大输出两个实根,换行;
若该方程有两个相等实根,首先输出2,换行,然后输出这个这个实根,换行;
若该方程有一对共轭复根,输出3,换行;
若该方程有无解,输出4,换行;
若该方程有无穷个解,输出5,换行;
若该方程只有一个根,首先输出6,换行,然后输出这个跟,换行;-For a quadratic equation ax ^ 2+ bx+ c 0, the solution can be divided into many situations. If the equation has two unequal real roots, the first output 1, line breaks, and then small to large output two real roots, wrap if the equation has two equal real roots, first output 2, line feed, then output this the real roots, wrap if the equation has a pair of complex conjugate roots, output 3, wrap if the equation whether the solution, output 4, line if the equation has an infinite number of solutions, output 5, line if the equation has only one root first output 6, line feed, then output this with line breaks
(系统自动生成,下载前可以参看下载内容)
下载文件列表
C4-3.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.