Postfix Calculator tests

CS 220

Dec. 5, 1997

Your postfix calculator should be able to do all the following, just like postfix.cc:

12
12 34 +
12 34 -
12 34 *
12 34 /
34 12 /
12 34 56 78 90 + + + +
12 34 + 56 + 78 + 90 +
2 3 + 4 5 + *
2 3 4 * + 5 +
2 3 4 * 5 + +
-12 -34 -
q
12 12                   (Error message)
12 -                    (Error message)
12 0 /                  (Error message)
a                       (Error message)



Thomas P. Kelliher
Thu Dec 4 10:55:18 EST 1997
Tom Kelliher