CISC 3110 - Assignment #6 - Function Templates
Write templates for two functions:
- max: accepts two arguments and returns the value of the arguments that is the greater of the two.
- secondMax: accepts an array (and its size) as an argument and returns value of the second largest element in the array
Design a driver program that demonstrates the templates with various data types. Test your functions on both primitive data types and on ADTs.
Remember: before you can use an operator on an object, make sure the operator has been overloaded for the data type!