I do not under stand how to get NODE to work. Worked fine with typedef struct but when I changed to template stopped working???
template<typename T>
struct Node
{
struct Node(T data)
{
this->data = data;
previous = NULL;
next = NULL;
}
T data;
struct Node *previous;
struct Node *next;
} NODE;
template<typename T>
class LinkedList
{
protected:
NODE *head;
NODE *tail;