next up previous contents
Next: Stack Revisited Up: Abstract Data Types Previous: Using CirQ as an   Contents

Homework Assignment

In this assignment, write a program that implements and tests the stack ADT. You can borrow some code from the implementation of the circular queue ADT. To be more specific, first define the type ``StackType'', then write the following interface subroutines to operate on a stack:

In addition, you also need to write an interactive test program to test whether the five subroutines are working or not.



Subsections
next up previous contents
Next: Stack Revisited Up: Abstract Data Types Previous: Using CirQ as an   Contents
Tak Auyeung 2003-12-03