list_t
class (acting as a stack;
you cannot use the STL's list
class),
provide the implementation of the infix expression
evaluator described in the text (pp. 97–102).
1 + 2 * 3 + ( 4 * 5 + 6 ) * 7
*, /, +, -
as well as (one level) of ()
nesting
q
or ctrl-d
to quit
(either should work)
1 + 2 * 3 + ( 4 * 5 + 6 ) * 7 1 2 3 * + 4 5 * 6 + 7 * + 189 8 + (2 * 6) 8 2 6 * + 20 20 / 10 + 2 20 10 / 2 + 4 q
std::list
acting as a stack, then simply
commenting out these stack declarations and substituting your
list_t
in place of the STL stack.
tar.gz
archive of your lab##/ directory, including:
README
file containing
Makefile
.h
headers and .cpp
source)
make clean
before tar
)
sendlab
notes