Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   sorting c++ link list i have used classes to create the list (http://www.go4expert.com/forums/sorting-cpp-link-list-i-classes-create-t21270/)

davy876 9Mar2010 20:01

sorting c++ link list i have used classes to create the list
 
1 Attachment(s)
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

shabbir 9Mar2010 21:15

Re: sorting c++ link list i have used classes to create the list
 
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 9Mar2010 21:28

Re: sorting c++ link list i have used classes to create the list
 
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 9Mar2010 21:42

Re: sorting c++ link list i have used classes to create the list
 
Have you seen - Sort Linked List

davy876 9Mar2010 22:57

Re: sorting c++ link list i have used classes to create the list
 
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


All times are GMT +5.5. The time now is 09:32.