Sort a linked list

Discussion in 'C' started by pierre.volant91, May 24, 2011.

  1. pierre.volant91

    pierre.volant91 New Member

    Joined:
    May 24, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi guys,

    I just start to learn how to programming in C and I'm working on linked list.

    I got a problem to make an exercise so if you could help me.

    There is the subject :

    It's about creating a circular doubly linked list in order to sort numbers.
    For sorting the number I can "swap" the two first numbers or using a temporary linked list.

    I try to make the list but it wasn't working and I really haven't got any idea how to sort the list.

    So if you can give me a few step to follow / advises or some example,
    It would be great and very helpfull.

    Thanks :undecided
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,345
    Likes Received:
    382
    Trophy Points:
    83

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice