Welcome to Dream.In.Code
Become a C++ Expert!

Join 136,927 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,837 people online right now. Registration is fast and FREE... Join Now!




how to convert link list emplementation by using this [code]

 
Reply to this topicStart new topic

how to convert link list emplementation by using this [code]

johnfie
17 Mar, 2008 - 02:33 AM
Post #1

New D.I.C Head
*

Joined: 17 Mar, 2008
Posts: 1

gud am..

can you give some example about link list how to delete and display when input a character?help me about that problem so that i learn how to used..thank you so mch..... smile.gif


User is offlineProfile CardPM
+Quote Post

MoobeH
RE: How To Convert Link List Emplementation By Using This [code]
17 Mar, 2008 - 04:46 AM
Post #2

New D.I.C Head
*

Joined: 22 Nov, 2007
Posts: 21


My Contributions
Im not sure if this is what you mean.

But a linked list is basically a group of objects that reference one another.

Single direction linked list: This one is where the objects might only know about the object infront (or behind them)

Double directed linked list: This is were an object has a reference to the object infront of it and behind it.

To use the second as an example, you'll need to create a class which will something like the following pseudo code:
CODE

class
{

int first, second, third;

className* next, previous;

}


And in your implementation, you can use aspects of a que and stack to implement this.

this link may help some more

http://richardbowles.tripod.com/cpp/linklist/linklist.htm
User is offlineProfile CardPM
+Quote Post

captainhampton
RE: How To Convert Link List Emplementation By Using This [code]
17 Mar, 2008 - 06:45 AM
Post #3

Jawsome++;
Group Icon

Joined: 17 Oct, 2007
Posts: 518



Thanked: 2 times
Dream Kudos: 825
My Contributions
QUOTE(johnfie @ 17 Mar, 2008 - 03:33 AM) *

gud am..

can you give some example about link list how to delete and display when input a character?help me about that problem so that i learn how to used..thank you so mch..... smile.gif


Dream in code actually has some fantastic tutorials on the subject if you want to just get a basic idea of what a linked list is comprised of and basic navigation through one as well.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/3/08 10:27PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month