Questions
- Convert your
ArrayIntclass from Chapter 12, Friends and Operator Overloading, to a templateArrayclass to support a dynamically allocated array of any data type that can be easily resized and has built-in bounds checking.
a. Consider what operators, if any, you will need to overload to allow generic code within each method to support any user defined types you may wish to store in the template Array type.
b. Using your template Array class, create an array of Student instances. Utilize various member functions to demonstrate that various template functions operate correctly.
- Using the template
LinkListclass, complete the implementation forLinkList<Type>::OrderedInsert(). Create aLinkListofStudentinstances inmain(). After severalStudentinstances have been inserted in the list usingOrderedInsert(), verify that this method works correctly by displaying eachStudentand theirgpa. TheStudentinstances should be ordered from lowest to...