all you have to do is to specify the type between angle brackets, like this:
LinkedList1<DVD> myLinkedList;
EDIT:
Here is what is happening behind the scene, the compiler will replace each T
with DVD
.
getting back to your code we get this:
struct discList
{
DVD value; // You used to have T here
struct discList *next; // To point to the next node
};
and you will have a linked list where each node is a structure holding a DVD
value.