To change a linked list into template, there's the code:
template <class Items>
Error message:template declaration of `struct node<Items> NODE'Code:struct node { Items data; node *next; } NODE;
That said, I cannot keep the object NODE when doing a template.
How to change those codes that involved the object NODE?
Code:newHead=new(NODE);