Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "../../RPN/RPN/RPN.h"
- #include <iostream>
- #include <stack>
- #include <string>
- struct OperationChild : Operation {
- const static char LEFT_ASSOCIATIVITY = 'l';
- const static char RIGHT_ASSOCIATIVITY = 'r';
- const static char OPEN_BRACKET = '(';
- const static char CLOSE_BRACKET = ')';
- static int getPriority(const char& op);
- static char getAssocitivity(const char& op);
- };
- class SortStation {
- public:
- double calculate(std::string& input);
- private:
- std::stack<char> container;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement