资源描述:
《求解方程-源程序.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、#include"iostream.h"#include"stdio.h"#include"conio.h"//基本输入输出文件#include"string.h"#include"stdlib.h"//定义杂项函数及内存分配函数#include"ctype.h"//字符处理#include"math.h"charterms[99][20];classEquation//定义类Equation{public:Equation(){}voidjecfc(int,int,int);//解二次方程voidgetterm(char*,char*,int&);//存放方程各项void
2、getyz(int*,int&,int);//得到因子voidjc(char*,char*,float);//降次voidgettermf(char*,char*,int);//得到指定幂的项intgetxs(char*);//得到系数(整数)intgetqium(char*);//求幂intyang(char*,float);//检验根是否正确intexp(int,int);//求某数的次方(整数)floatknyz(int*,int*,int,int,char*);//求所有可能的根floatexp(float,int);//求某数的次方(实数)//返回equ的系数乘以
3、val的equ的次数的次方的值floatcalcequval(char*,float);};voidmain(){cout<<"使用说明(允许&不允许):"<4、t<