Question

Write a class called very_smart_int_array that is derived from the smart_int_array class defined in smartintarrayclass.h and smartintarrayclass.cpp. The new class must keep track of the maximal number of items that have ever been in the array at any point in time, and provide a member function MaximalEverStored that returns the number.

UseVSIAC.cpp is a simple program that uses the new class.

Answer