home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH17 / A17131.TXT < prev    next >
Encoding:
Text File  |  1993-10-02  |  561 b   |  12 lines

  1. This example shows how you might create a generalized stack in
  2. C++.  It demonstrates some important C++ features, including
  3. templates and exception handling.
  4.  
  5. The container classes are based on an abstract-class template
  6. called "Stack", an abstract-class template called "Iterator", and
  7. an abstract base class called "Exception".  These abstract classes
  8. specify the behavior or functionality of the two stack container
  9. classes.  One of the stack container classes in the example is
  10. based on an array and the other is implemented using a linked
  11. list.
  12.