The most simplifying method is a structures.
Like that
struct Node
{
int value; //data of node
Node *next; //pointer to a next node in the list
};
struct List
{
Node *first;
Node *last;
};
Implementation you will type by yourself. Good luck!
Protuberance
Junior Poster in Training
90 posts since Aug 2009
Reputation Points: 78
Solved Threads: 17
LinkedList
SUMMARY: In computer science, a linked list is a data structure that consists of a sequence of data records such that in each record there is a field that contains a reference (i.e., a link) to the next record in the sequence.
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
You are right, Gaity. Don't forget to post source code with bb code tags. Read [b]announcement[b/] link at the top for each forum page.
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241