Assignment Instructions

  1. Edit, compile, and run the following program on the UH UNIX shell:
    1. Create a derived class called DisplayStack (which inherits all data members and member functions of class Stack) which overloads the operator<< (cout).
    2. When you output the contents of an object, it should not change the contents of an object. In other words, you should not use function pop() for this assignment. Instead, you should loop through the linked nodes.
    3. See file assignment25.cpp for starter code and example output (at bottom of file).
    4. Email your makefile and C program to the instructor, or show it to the instructor in class.
  2. For the submission guidelines and the grading guidelines, see the syllabus.