c++经典编程题汇总

《c++》编程题试卷ios 第三章c++ 1.编写一个求方程ax2 + bx + c = 0的根 的程序,用3个函数分别求当b2-4ac大于零、等于零、和小于零时的方程的根。要求从主函数输入a,b,c的值并输出结果。 #include < iostream.h > #include < math.h > void equation_1 (int a, int b, int c) {        
相关文章
相关标签/搜索