CS 102 Laboratory Session Nine

Template Function

Download the source file Lab09.cpp and compile and run it. Then modify the sort() function to be a template function and demonstrate it with an array of integers and an array of characters in addition to the array of doubles already provided.

Five points total.



This page established November 2, 1999; last updated November 5, 1999 by Rick Wagner.