Question

Remember the monolithic Marks.cpp program, and the MarksLib.cpp implemetation using the intarray library in intarraylib.h and intarraylib.cpp? Well, MarksStruct.cpp is a better monolithic version, that uses are more a intelligent data type and an extended set of functions for accessing the data type. Examine MarksStruct.cpp and work out what it does, and why it is better.

Extract the smart_integer_array data type and the functions into a smartintarray library. You will have to create the files smartintarraylib.h and smartintarraylib.cpp. Rebuild the program and make sure it works as before.

Answer