c++ You will implement a template class with the followingmembers: An array of our generic type. The
Fantastic news! We've Found the answer you've been seeking!
Question:
c++
You will implement a template class with the followingmembers:
- An array of our generic type. The size of this array should bedetermined by an integer argument to the constructor.
- An integer for storing the array size.
- A constructor capable of accepting one integer argument. Theconstructor should initialize the array and set the arraysize.
- A method, find Max, that returns the maximum value in thearray.
- A method, find Min, that returns the minimum value in thearray.
Additionally you will need to create a short driver program thatdemonstrates your template class working with a few differentnumeric data types.
Related Book For
Posted Date: