Question: C++ program using templates 1. Create a function (class) template prototype and definition named findLargest that has two parameters: a. an array of Type b.
C++ program using templates
1. Create a function (class) template prototype and definition named findLargest that has two parameters:
a. an array of Type b. int representing size of the array c. a return value of Type d. the template code should loop through the array, find the largest value and return the largest value e. create and initialize two arrays, an integer array and a double array, size and values of your choice f. call the function template using each of the declared arrays and output the largest value in each of the arrays
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
