home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH17 / A17131.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-11-04  |  379.0 KB  |  1 channel  |  11,025 sample rate  |  35 seconds
Transcription: 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 and 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. The back container classes in the example is based on an array and the other is implemented using a linked list.