1 2 3 4 5 6 7 8 9 10 11

An array implementation of Istack

#include "mydefs1.h"
#include <assert.h>

// Array implementation of stacks. // Grow from high index towards 0.

IMAGE imgs/lec-1902.gif

Notes

*assert( exp ) does nothing if exp is false, otherwise it prints a run-time error,See King Chapter 24.

*

We are using a default constructor.

March 14, 1998

Page 10

C201/TAM