#include #include #include using namespace std; bool is_operator(char c){ return ((c=='+')||(c=='-')||(c=='*')||(c=='/')); } // assuming that expression is a well-formed postfix notations, tokens will have the list of integers and operators in order of appearance. void Tokenize(string expression, vector& tokens){ string last_int = ""; // expression has only characters of space, digit, or operator(+-*/) for (int i=0; i tokens; Tokenize("5 43 90 * -", tokens); for (int i=0; i