I am very much a beginner and trying to create a linked list, asking the "user" to input 5 or 6 values. My problem is that I don't know the correct terminology or how to store the user's input so that I can create my pointer to the next value and so on. My understanind of the topic is not great, and I think I'm missing a very easy concept. Either way...all I want to do is create the linked list and eventually be able to add more values to it if necessary.
After reading other forums, I understand that ever using the gets() is a bad idea as it has no buffer. Any help or advice is much appreciated.
Jump to Post
specify the requirements clearly :
what do you want to store in linked list numbers or names(strings).
if numbers are to be stored use scanf
else use fgets or
you can define one safe function for reading strings.
post your program here so that you will get some guidelines …
All 3 RepliesReply to this topic
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.