Thread: help needed

  1. #1

    help needed

    i need help for the folowing assignment.

    write a programme for creation of a doubly linked list using pointers in 'C' langauge . also there should be provision for insertion and deletion of elements from the list...

    i have a submission on 31st..
    if anyone could help..
    i'll be thankful.


  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    > i need help for the folowing assignment.
    What sort of help?

    You've stated the problem, but how far have you got?
    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.

  3. #3
    thanx sallem for ur reply..
    but the problem is i haven't sarted the programme cuz i just don't know how to do it...
    i mean i am doing a correspondance course...
    and i've read everything i could on pinters and arrays...
    but i still can't figure out how to do this thing...

    i mean if u can help me understand...


  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Double linked lists are WONDERFUL! I love these things.

    First off, do you know what a linked list is? I'll tell ya, because I like them so much.

    A "Linked List" is an object that contains some data, and also a pointer to an object who's type is itself. (That is to say, if I call the object "myObject", then this object contains a pointer who's type is "myObject".)

    Here is a quick example:
    struct myObject
       struct myObject *next;
       int myData;
    A double linked list is similar, except there are two such pointers. These pointers are generally named "prev" (or previous) and "next".

    Think of each object as a link in a chain. There is one before it, and one after it. If it is just a length of chain, think of how it hangs from your hand. Your hand anchors it in place (from falling due to gravity, blah blah), and each link connects to the next in the chain length, until the last one, who doesn't have a next link.

    Very simple concept.


  5. #5
    Hi Quzah,

    Thanx for that concept of urs...
    well i am still working on the programme...
    so i'll let you know when i finish it off...

    thanx once again

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. free needed or not?
    By quantt in forum Linux Programming
    Replies: 3
    Last Post: 06-25-2009, 09:32 AM
  2. C Programmers needed for Direct Hire positions
    By canefan in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 09-24-2008, 11:55 AM
  3. lock needed in this scenario?
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-25-2008, 07:22 AM
  4. Releasing a program - what is needed? A few Q's
    By ulillillia in forum Tech Board
    Replies: 9
    Last Post: 04-28-2007, 12:18 AM
  5. C++ help needed
    By Enkindu in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 08-31-2004, 11:24 PM