Linked list with two class types within template.

This is a discussion on Linked list with two class types within template. within the C++ Programming forums, part of the General Programming Boards category; I'm having a problem getting a program to run for class. We are using a specific list class our Professor ...

Linked list with two class types within template.

I'm having a problem getting a program to run for class. We are using a specific list class our Professor rearranged himself. We have to use it. It is of template type with two classes imbedded such as template<class TYPE,class KTYPE>. I have enclose my main and the header file for the list class. If someone could tell me why my compiler won't build I would be forever grateful. Here is the main and header:

The comment line is due to pasting. I'm not sure what you mean about instantiating. The only thing I'm trying to do is make an integer list from 1-9 and output the list so far. The key would be the second int type and used for searching the list. Does this help clarify anything? I hope it might help.