GIDForums

Go Back   GIDForums > Computer Programming Forums > CPP / C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 22-Oct-2006, 21:26
sweeeeeeetlipss sweeeeeeetlipss is offline
New Member
 
Join Date: Dec 2005
Posts: 5
sweeeeeeetlipss is on a distinguished road

Doubly linked lists in C++


does anybody have a general template for a doubly linked list in c++ .. i have some code for a singly linked list which im trying to create the doubly linked list from and i literally dont know where to start ...

if i have a template i think i would have a better idea

thanks
  #2  
Old 23-Oct-2006, 23:27
davis
 
Posts: n/a

Re: Doubly linked lists in C++


Quote:
Originally Posted by sweeeeeeetlipss
does anybody have a general template for a doubly linked list in c++ .. i have some code for a singly linked list which im trying to create the doubly linked list from and i literally dont know where to start ...

if i have a template i think i would have a better idea

thanks

The only difference between a doubly linked list and a singularly linked list is that the singularly linked list has a "next" pointer and the doubly linked list has a "next" and a "prev" pointer, which points to the previous element in the list.

If the list is "circular," then the list will have a "first" and "last" whereby the "prev" in "first" points to "last" and the "next" in "last" points to "first."


:davis:
 

Recent GIDBlogUpdates On The All New Toyota VIOS - Part III by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Doubly linked list akanksha C Programming Language 3 06-Oct-2006 11:30
doubly linked list w/ one node Darth Predator CPP / C++ Forum 1 17-May-2006 20:52
[Include] Doubly-linked List dsmith C Programming Language 6 14-Apr-2006 13:12
help on linked lists any1????? nick4 C Programming Language 1 17-May-2004 09:32
linked lists, newbie needs help moltarim C Programming Language 4 06-May-2004 11:32

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:45.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.