Home CPSC 340

Templates Exercise


To be able to utilize template classes in C++.


In class today, we saw a version of a stack class that used templates to allow us to store any kind of data in the stack. For this lab, you will have to do the same for the IntList.cpp file.

You will then change the main function so that it creates the templated array object properly using characters instead of integers.



When your program works, email the code to ifinlay@umw.edu.

Copyright © 2018 Ian Finlayson | Licensed under a Creative Commons Attribution 4.0 International License.