Reverse Polish Notation impementation for C++
Reverse Polish Notation impementation for C++.
Do you want to know what RPN is? Click here and read more about it.
Reverse Polish notation is a easier way to write a mathematical equation by not parenthesized expressions. It’s also common calculator type in computing because no bracets are needed.
Program gets all equation input in reverse Polish notation and prints computed result.
((2+7)/3+(14-3)*4)/2
=> 2 7 + 3 / 14 3 - 4 * + 2 /
Result is 23.5.
Each number or char in separate row. Result is 23.5.