CS12

Lab 7


Lab Tasks

In this lab you will be using templates to write a few generic functions. These functions should work for any of the predefined C++ numerical types (short, int, double, float, etc). You should implement the following functions:

Make a main that tests all these functions.