Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <string>
- #include <memory>
- #include <vector>
- #include <stack>
- using namespace std;
- class ReversePolandNotation
- {
- private:
- int getPriority(char character);
- bool isAlphaNum(string str);
- bool isDigit(string str);
- vector<string> * parseFormula(string * input);
- public:
- ReversePolandNotation();
- string performCalculation(string formula);
- string evaluateFormula(vector<string> * formula);
- //string evaluateStingFormula(vector<string> * formula);
- ~ReversePolandNotation();
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement