For this assignment, you may work in pairs (2 people). All students (whether working in a pair or not) must individually turn in the assignment by individually running the handin program. Therefore, 2 copies of the assignment will be turned in for those working as a pair. The grader will choose to grade only one copy of a pair's work, and assign the same score to both students.
If working in a pair, the names of BOTH students must appear at the top of the turned in assignment.
The purpose of this assignment is to properly implement memory management in a C++ program.
Use your program from Assignment 4. Modify any and all files from Assignment 4 to properly implement memory management.
I strongly suggest that you use purify on your resulting program to verify that your program does not leak memory.
Include within comments at the top of file main.cpp:
Makefile from
Assignment 5 to compile, and also to compile an executable
instrumented for use with purify.
main.cpp
as specified above.
We are (again) using the lab-supported handin program, to turn in this program online.
You are turning in all 5 files that comprise the program:
main.cpp
Queue.cpp
Queue.h
Process.cpp
Process.h
Turn in your program by running the lab-supported handin program. Instead of following the lab's directions, use this exact command
/s/handin/bin/handin -c cs368-1 -a a6 -d .
while your current working directory is
the one containing these files.
This program copies the specifically named files to
a directory accessible by the instructor and TA.