sorting c++ link list i have used classes to create the list

davy876's Avatar, Join Date: Mar 2010
Newbie Member
i want to sort the link list by the Employee id number but have no clue where to start.the sorting must be done in the EmployeeLink.cpp file see atachment.

thank you.can any one help please
Attached Files
File Type: zip employee info.zip (5.4 KB, 7 views)
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Please do not attach your program and ask for getting it done.

Explain what you are trying to achieve and what you could not do and we would be more than happy to help
davy876's Avatar, Join Date: Mar 2010
Newbie Member
i apologise.i thought that by uploading the codes that you would get a better understanding of what i was doing.as i explained i had no clue as to how to do the sorting of link list.again i apologise.thank you for assiting
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Have you seen - Sort Linked List
davy876's Avatar, Join Date: Mar 2010
Newbie Member
yes i did but when i implemented the code and change it some what to match my program i keep getting this error : left operand must be l-value

code for which error was given for:
current->getnextEmployeeInfo()=next->getnextEmployeeInfo ();

thanks u for helping