Quote:
Instead, write an array class that holds ints. When you are done and it is working, replace int with T and make the class a template.
I think that is the best approach as well. At this point, it's apparent you've chosen an example that is too difficult for you. Try creating a simpler templated class. For instance, declare a template that has one private member variable that you set in a constructor. Then add a simple get() function that returns the member variable. Your goal is to write a template that will handle any type.