See how to use stacks to evaluate expressions.
Givens -- Download these before you start
makeand the code will be compiled... if possible. But I have deleted some asterisks and arrows from some of the files.
./reverseHere is an example run
./reverse
Input a text. Finish with CTRL/D on a new line
This is a test
tset a si sihT
This may uncover more problems! Find them and fix them
./exprEval
input an expression ending with =. Separate integers and operators.
1 + 2 * 3 =
7
./exprEval
input an expression ending with =. Separate integers and operators.
( 1 + 2 ) * 3 =
9
1+2=
1 / 2 =