文件名称:C4-3
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-11-07
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 胡**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
对于一元二次方程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