-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathManage.h
More file actions
29 lines (29 loc) · 785 Bytes
/
Manage.h
File metadata and controls
29 lines (29 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include"Polynomial.h"
using namespace std;
class Manage
{
private:
vector<pair<string,int> >type;
vector<string>output;
map<string,Polynomial>search;
public:
Manage();
void input();
void check();
void choose();
void E(string expr,int& count,int& err);
void T(string expr,int& count,int& err);
void F(string expr,int& count,int& err);
void ConvertPostfix(string expr);
Polynomial ComputePostfix(vector<string>&output);
void HybridOperation();
int prior(string opt);
double stringToDouble(const string& str);
void isDouble(string expr,int& i);
bool isOperator(string str);
bool isOperand(string str);
void getTwodouble(string str,double& a,double& b);
void popTwoOperand(stack<Polynomial>&s,Polynomial& first,Polynomial& second);
void WordAndType();
~Manage();
};