Questions
- Convert your
ArrayInt
class from Chapter 12, Friends and Operator Overloading, to a templateArray
class 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
LinkList
class, complete the implementation forLinkList<Type>::OrderedInsert()
. Create aLinkList
ofStudent
instances inmain()
. After severalStudent
instances have been inserted in the list usingOrderedInsert()
, verify that this method works correctly by displaying eachStudent
and theirgpa
. TheStudent
instances should be ordered from lowest to...