Question: Write a C++ program that will evaluate a post-fix expression. The 3 major components of the program are get the postfix expression evaluate the postfix
Write a C++ program that will evaluate a post-fix expression. The 3 major components of the program are
get the postfix expression
evaluate the postfix expression
display the results
Suggestion: implement the post-fix expression as a list of strings where each string is either an operand (integer in our case) or operator (4 standard arithmetic operators). Use the STL stack class and Arrays.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
