multiple linked lists

This is a discussion on multiple linked lists within the C++ Programming forums, part of the General Programming Boards category; hello friends i m new to this forum i guess there r better programmers here then at other places where ...

  1. #1
    Registered User
    Join Date
    Jul 2006
    Location
    mumbai
    Posts
    5

    multiple linked lists

    hello friends i m new to this forum
    i guess there r better programmers here then at other places where i recieved no reply at all.......

    i wanted to know about multiple linked lists
    mainly the logic.........
    i searched a lot but i did not get a convincing answer.......
    i mean they jus speak of links to nodes and all
    ..............

  2. #2
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,666
    > i mean they jus speak of links to nodes and all
    Because essentially this is what linked lists are: you take a bunch of data, store it in a node structure (or a class) and connect nodes with pointers. Perhaps you should explain what you mean by "multiple."

  3. #3
    Registered User
    Join Date
    Jul 2006
    Location
    mumbai
    Posts
    5
    i know how to create singly linked lists which r defined as say may be a data part with only one node at the end which stores the address of the next data part ...................

    similarly i even know doubly linked lists......
    where there are 2 nodes for accessing the previous and the next data part


    But wat about multiple linked lists

    which i hav been told to use in my assignment..........

  4. #4
    Registered User
    Join Date
    Jul 2006
    Location
    mumbai
    Posts
    5
    help me quickly
    if anyone can .....................

    its really urgent

    and it is also essential to use multiple linked lists.....................

  5. #5
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,666
    If you don't understand the assignment, you really need to ask the instructor. I think your instructor may mean "use many linked lists."

    Multiple linked lists is a new one on me, I do not know what to implement off the bat, though I have a couple more ideas. So I think your instructor wants many different lists. You can ask him to explain what he means. If you do not have time for that, it's best to try to figure out the rest of the assignment, and do it the best you can. Then when you hand it in you can explain that you did not understand what he meant.

  6. #6
    Registered User
    Join Date
    Jul 2006
    Location
    mumbai
    Posts
    5
    can i post may be the problem itself so tht u can help me out >>>>>>>>...............

  7. #7
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,666
    The board has a strict homework policy and in this case anything we tell you might not be what the instructor wants anyway.

  8. #8
    Registered User
    Join Date
    Jul 2006
    Location
    mumbai
    Posts
    5
    no not the homework
    just hint related to wat my instructor wants.............

  9. #9
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    > i wanted to know about multiple linked lists
    You pass the list you want to modify as a parameter.

    Eg.
    append( &list1, 123 );
    append( &list2, 456 );
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiple linked lists
    By JFonseka in forum C Programming
    Replies: 8
    Last Post: 04-19-2008, 06:49 AM
  2. Multiple Linked Lists w/HeadNode
    By tofugirl in forum C Programming
    Replies: 12
    Last Post: 12-10-2005, 09:21 AM
  3. Linked Lists 101
    By The Brain in forum C++ Programming
    Replies: 5
    Last Post: 07-24-2004, 04:32 PM
  4. Can multiple linked lists share the same structure?
    By passy in forum C Programming
    Replies: 10
    Last Post: 08-28-2003, 04:38 PM
  5. need help w/ linked lists
    By MKashlev in forum C++ Programming
    Replies: 11
    Last Post: 08-05-2002, 08:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21