previous
|
start
|
next
A Stack-Based Calculator
For evaluating arithmetic expressions
Turn the expression into a tree
Carry out a postorder traversal of the expression tree
Apply the operations in the given order
The result is the value of the expression
previous
|
start
|
next