资 源 简 介
一元二次方程,快速计算,Δ>,<, =0的情况,都有,很详细,新手交换高难度源码。 #include#include#includeusing namespace std;class FindRoot{private:float a, b, c;double r, q, x1, x2;int jud;public:void Input();void Display();void Find();};void FindRoot::Input(){cout << "一元二次方程求根,ax^2+bx+c=0" << endl;for (;;){cout << "输入方程a:";cin >> a;if (a == 0)cout << "错误,a不能为0" << endl;elsebreak;}cout << "输入b:
";cin >> b;cout << "输入c:
";cin >> c;}//x1+x2=-b/a,x1