CS 153 Data Structures I
Programming Assignment #9

Due: 10/18/01

This programming assignment is designed to:

Before beginning work you will need to add one member function to the class List (assignment #8). The prototype for it is Node * GetHead(); The body for it is the one line return(mHead);

Possible confusion: You will be using inheritance in two different situations

  1. You will inherit a data object (strData) from Node just like in project 8
  2. You will inherit from class List to create a new class Stack

Overview: This project will

  1. accept a postfix expression in an CString EditBox
  2. evaluate the integer numeric expression (using an integer stack). The pseudocode for evaluate postfix is in your text (Fig. 7.10). When the text refers to 'reading', your program will get the next token from the CString EditBox.
  3. display the integer answer in an int EditBox
  4. The GUI should contain:

NOTE ON THE USE OF PREVIOUS FILES - You should start a new project because it will be easier to design a new GUI than to revise the previous one. You will however be making extensive use of the List class. Following the following steps for getting started:

  1. Create a new project 9
  2. Copy/Paste the List .h and .cpp files from the project 8 directory to the project 9 directory
  3. 'Tell' project 9 to include the copied files into this project
  4. If struct/class Node and struct/strData were in separate files repeat #s 2 and 3 for those files
  5. class strData - create or modify from #8.
  6. class Stack -