sstack.h
contains initial code for a
"simple" stack class holding strings. You will extend it and write the
implementations in sstack.cpp
,
using stacktest.cpp
to test your
code.
This implementation uses an "inner" class, StackNode
. Treat it
like a regular class - it's just private to StringStack
. You
can modify both StringStack
and StackNode
in your
solution, as long as your implementation is based on linked lists.
Submit your code (sstack.h
, sstack.cpp
) to
Esubmit as ex6stack. Do not submit stacktest.cpp -
that is provided for you. The code will be graded for correctness only;
there are no style requirements. You may work with other students on this
exercise, but each must submit their own solution.