The InsertOrdered() method must maintain a sorted list, i.e., the first element in the list must have the smallest value than all other elements in the list, the second element in the list has the second smallest value, and so on.
The DeleteOrdered() deletes a specific element
I have prepared many help files to get you started on this project. All you have to do is concentrate on writing the InsertOrdered() and DeleteOrdered() functions.
The list element structure is similar to the one used in class and the class definition is given in the following file:
Copy this file into your project directory do NOT make any changes to the name of the file nor its content !!!
Copy this file into your project directory and do NOT make any changes to the name of the file nor its content !!!
You must read the pj3-main.C program and find out the number and type of the parameters of the InsertOrdered() and DeleteOrdered() functions. |
The main program invokes the function InsertOrdered() to insert 4 items into a linked list.
Then it invokes DeleteOrdered() to delete specific elements.
Your assignment is:
(this header file is included in the main program file pj3-main.C, so the program will NOT compile if you do not provide this file).
Note: the executable program must be named main - it will simply my grading.
/home/cs561000/turnin Makefile pj3
/home/cs561000/turnin pj3.h pj3a
/home/cs561000/turnin yourfile.C pj3b