Example: A Stack of Integers

We've provided the complete, working code for the stack example. You should read through it and play around with it to make sure you understand the features of C++ described in this paper.

To compile the simple stack test, type make all -- this will compile the simple stack test ( stack.cc), the inherited stack test ( inheritstack.cc), and the template version of stacks ( templatestack.cc).