CPSC 1720 - Homework #16

The function

     int minPosition(int array[], int size)

takes an array of integers of the given size and returns the index of the smallest element of the array. Define a template that works like this function, but permits an array of any data type that has the < operator overloaded. Write a driver to test your template.


150 East College Avenue * Ephraim, Utah 84627 * Email: ude.wons@nosneros.htrag
© 2004 Snow College * All Rights Reserved
©