how to create linked list?

Reply

Join Date: Sep 2009
Posts: 1
Reputation: kapiljain469 is an unknown quantity at this point 
Solved Threads: 0
kapiljain469 kapiljain469 is offline Offline
Newbie Poster

how to create linked list?

 
0
  #1
Sep 3rd, 2009
how to create linked list?
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 66
Reputation: Protuberance will become famous soon enough Protuberance will become famous soon enough 
Solved Threads: 14
Protuberance's Avatar
Protuberance Protuberance is offline Offline
Junior Poster in Training

Re: how to create linked list?

 
1
  #2
Sep 3rd, 2009
The most simplifying method is a structures.
Like that
  1. struct Node
  2. {
  3. int value; //data of node
  4. Node *next; //pointer to a next node in the list
  5. };
  6.  
  7. struct List
  8. {
  9. Node *first;
  10. Node *last;
  11. };
Implementation you will type by yourself. Good luck!
"If a problem can be decided - it is not needed to worry, and if to decide it is impossible - worrying is useless." (с)
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,552
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 451
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: how to create linked list?

 
0
  #3
Sep 4th, 2009
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.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 76
Reputation: Gaiety is an unknown quantity at this point 
Solved Threads: 2
Gaiety's Avatar
Gaiety Gaiety is offline Offline
Junior Poster in Training

Re: how to create linked list?

 
0
  #4
Sep 5th, 2009
A linked list is a data structure in which it contains the nodes. a node is a structure it contains the data field and a pointer field. the data field can be anything, and the pointer field contains the address of the next node.

so the structure should be
struct Single_Linked_List
{
char name[20];// data
int rollno;// data
float fee;// data
struct Single_Linked_List *next;// pointer to the next node
};
typedef struct Single_Linked_List SLL;
now SLL can be used whereever structure can be used.
SLL *Newnode;
Last edited by Gaiety; Sep 5th, 2009 at 3:23 am. Reason: added some extra content
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,552
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 451
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: how to create linked list?

 
0
  #5
Sep 7th, 2009
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.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 76
Reputation: Gaiety is an unknown quantity at this point 
Solved Threads: 2
Gaiety's Avatar
Gaiety Gaiety is offline Offline
Junior Poster in Training

Re: how to create linked list?

 
0
  #6
Sep 7th, 2009
Please let me know what is bb tags, and how to use that.
thanks,
Gaiety
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 201
Reputation: yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold 
Solved Threads: 35
yellowSnow's Avatar
yellowSnow yellowSnow is offline Offline
Posting Whiz in Training

Re: how to create linked list?

 
0
  #7
Sep 7th, 2009
Originally Posted by Gaiety View Post
Please let me know what is bb tags, and how to use that.
thanks,
Gaiety
Read the material at this link:

http://www.daniweb.com/forums/thread93280.html

On the front page of this forum, there are a number of threads at the top which as a "newbie", you should read as well.
Manic twiddler of bits
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 1
Reputation: paradip is an unknown quantity at this point 
Solved Threads: 0
paradip paradip is offline Offline
Newbie Poster
 
0
  #8
27 Days Ago
how to write c programming containing linked list of students consisting of name age roll no in he ascending order of name
Reply With Quote Quick reply to this message  
Reply

Tags
linkedlist

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC