Hello! I'm having a little problem with my program, which I believe may be due to a linking error. The error I receive when I try to compile is:
1>main.obj : error LNK2019: unresolved external symbol "void __cdecl displayList(class Employee * &)" (?displayList@@YAXAAPAVEmployee@@@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "void __cdecl deleteItem(class Employee * &)" (?deleteItem@@YAXAAPAVEmployee@@@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "void __cdecl insertItem(class Employee * &)" (?insertItem@@YAXAAPAVEmployee@@@Z) referenced in function _main
1>C:\Documents\Visual Studio 2010\Projects\Project\Debug\Project.exe : fatal error LNK1120: 3 unresolved externals
I haven't looked over all of the code so I am not sure if it's the only problem, but in your switch statement you are calling functions that are inside of the class, without listing the class they are inside.
You will probably want to change it to something like this
1 2 3 4 5 6 7 8 9 10 11 12
Employee *head = NULL;
switch (choice)
{
case 1: head->insertItem(head);
break;
case 2: head->deleteItem(head);
break;
case 3: head->displayList(head);
break;