Question: classes, c++ 1. Create a function (class) template prototype and definition named findLargest that has two parameters: a. an array of Type b. int representing
classes, c++ 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
