formula.h
上传用户:hyb6888
上传日期:2016-01-24
资源大小:5186k
文件大小:1k
- class stackOP
- {
- int topOP;
- int topNum;
- char stack[100][10];
- double stackNum[100];
-
- public:
- int caculateOP();
- int GetSort(char *ss);
- int MycmpOP(char *ss);
- popOP(char *ss);
- pushOP(char *ss);
- int GetTop(char *ss);
- int GetTopNum(double *lnum);
- int popNum(double *Num);
- double pushNum(char *ss);
- double pushNum(double num);
- int GetResult(double *Num);
- bool IsNullNum();
- stackOP();
- ~stackOP();
- };
- class formula
- {
- char *Exp,*pExpscan;
- int myflage;
- int formula::GetStr(char *retss);
- stackOP stackop;
- setformula(char *Expression);
- public:
- double resultvar;
- int getformulaVar(double *Num);
- caculate(char *lExpression);
- formula();
- ~formula();
- };