1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'C++' started by davy876, Mar 9, 2010.

  1. davy876

    davy876 New Member

    Joined:
    Mar 8, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    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:

  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    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
     
  3. davy876

    davy876 New Member

    Joined:
    Mar 8, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
  5. davy876

    davy876 New Member

    Joined:
    Mar 8, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page