home *** CD-ROM | disk | FTP | other *** search
- This example shows how you might create a generalized stack in
- C++. It demonstrates some important C++ features, including
- templates and exception handling.
-
- The container classes are based on an abstract-class template
- called "Stack", an abstract-class template called "Iterator", and
- an abstract base class called "Exception". These abstract classes
- specify the behavior or functionality of the two stack container
- classes. One of the stack container classes in the example is
- based on an array and the other is implemented using a linked
- list.
-