CSE2305 - Object-Oriented Software
Engineering
assessment
In order to compile and run C++ programs you should use g++, not gcc.
Examine the C++ source code in the files List.h, List.cpp and main.cpp (download
them from here a gziped tarball).
Makefile that
has targets to build an executable and to remove any intermediate files.List::Node class¤.
gdb, trace the execution
of the code and verify your explanation (you don't have to submit
this).
The List class¤ can add elements (via List::Insert(string)) but can't remove
them. Write a List::DeleteCurrent(void) member¤ function
which removes the current element in the list.
Using a suitable sorting algorithm, write a List::Sort(void) member¤ function,
which sorts the list. Test your class by writing a program to sort this sample
list of words. You should sort the words in lexicographic (i.e. dictionary)
order.
Use the UML graphic notation to describe your final version of the List class.
You should submit the following:
List classList class
workMakefile, with 2 targets: the default target builds the
program(s), the clean target removes the executable and any
intermediate files (e.g. .o files created during compilation).README with a brief explanation what you have
done (including testing) and how to perform the tests on your submission.vi).See the submit page for details on how to submit your assignment. Please make sure all files you submit contain this student declaration which attests that your submission is your own work.
Last Modified: August 8, 2005