Stacks (and additional C++ issues)

Reading:
Ch. 4.2 is the primary reading.
However, we will invoke various background information on C++ syntax, drawn from Ch. 1.5.3, 1.5.5, 2.2.5, 2.3, 2.4.
Ch. 1.5

We will introduce an abstract data type known as a Stack, following closely to the presentation in Ch. 4.2. However, as we begin to examine the C++ code for implementing this concept, we will need to visit several new aspects of the C++ programming language, outlined in Chapters 1 and 2, yet which we originally bypassed. In particular, we will explore:

Ch. 4.2 of the text gives many code fragments related to the defintion of a Stack and its implementation as an ArrayStack. However, those code fragments do not make a complete, compilable C++ program. Instead, we offer our own version of the same classes, as part of a complete project which can be truly compiled (available files).


Last modified: Thursday, 09 September 2004