Computer Science 2:
Stacks and Templates
Wednesday, February 12, 2003
Stacks are discussed in Chapter 7. Here is the
example from class
(a stack of characters).
Templates are classes and functions and operators that work with different
data types, the data type being a parameter. This is discussed in Chapter 6.
Here is the template version of the
stack class discussed in class and the difference
between the non-template and the template version.
7:10 PM, Friday, May 2, 2003