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

Newbie Member
9Mar2010,20:01   #1
davy876's Avatar
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)
Go4Expert Founder
9Mar2010,21:15   #2
shabbir's Avatar
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
Newbie Member
9Mar2010,21:28   #3
davy876's Avatar
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
Go4Expert Founder
9Mar2010,21:42   #4
shabbir's Avatar
Have you seen - Sort Linked List
Newbie Member
9Mar2010,22:57   #5
davy876's Avatar
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