Wednesday, November 08, 2006

Post-Fix Procedure

Well, First : For each number, we have to stack in a temp numeric-stack variable, the same procedure is performed in the operator-stack variable.

If the length of operator-stack variable exceeds numbe ones, we can infer is bad formed he post-fix expression.

Finally for Evaluating both stacks, we get First and second -node on stack-number variable and we evaluate with the first node operator-stack.


No comments: