Ive been working on a linked list implementation. Previously i had it working for only char as the data type. I tried implementing generics/templates so i could use any data type.
I have 4 files in my project. Clist.h, Clist.cpp, Main.cpp and EmptyListException.h.
Previously my program would not run when i had my Clist.cpp seperate from my Main.cpp. I then copied the entire class too my Main.cpp and it runs without a problem.
Is there a way i can do this so my Clist.cpp can be separate from my main file (which is a test harness for the linked list).
I can post the code if it would help.