CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2010
    Posts
    1

    Need help in a doubly-linked list

    Hi. I have coded a doubly-linked list. There are still 2 more methods that i don't know how to write their codes. I would really appreciate it any one help me with that. here are the methods:

    void reverse()-- this methods reverses the list and it should do it "in place" by changing the pointers.

    boolean addEnd(int newPosition, T newEntry)-- this method is just like add, except the position will be taken from the end of the list end, so that newPosotion 1 would mean that the new entry will be added at the end of the list and so forth.

    Thanks.

  2. #2
    Join Date
    Oct 2010
    Posts
    15

    Re: Need help in a doubly-linked list

    and if I do this will there be cake?

  3. #3
    Join Date
    May 2006
    Location
    Dresden, Germany
    Posts
    458

    Re: Need help in a doubly-linked list

    Quote Originally Posted by mohitzadeh View Post
    I would really appreciate it any one help me with that.
    How shoud anyone help you to write these functions?

    We don't know how your list is defined.
    We don't know how much you've done so far and where you have problems implementing these methods.

    So how can we help?

    With regards
    Programartist

  4. #4
    Join Date
    Feb 2002
    Posts
    4,640

    Re: Need help in a doubly-linked list

    Click
    Viggy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured