2 Question for help 2 me

Joined
Mar 30, 2009
Messages
1
Reaction score
0
1) Create a linked list that stores integer values.
Write a function that does the following:
● Accepts an integer value from the user
● Adds the integer value to the end of the linked list
● Displays the content of the linked list, along with the size of the linked list
● Repeats the previous steps until the program is terminated with CTRL-C
The integer values should be displayed in the order they are entered by the user.
2) Modify your linked list created in 1 to do the following
● Accepts an integer value from the user
● Adds the integer value into the linked list in sorted order (ascending)
● Displays the content of the linked list, along with the size of the linked list
● Repeats the previous steps until the program is terminated with CTRL-C
The integer values should be displayed in ascending sorted order.
The sorting should be done during insertion of each integer into the linked list, not explicitly.

I need help 2 these problems,i do a lot of example in c to imrprove my c but i'm just a beginner right now,if you help me i will pleasent thx anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top