I confuse 2 problems

March 30, 2009 at 02:28:47
Specs: Windows XP
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'am donig some example but these are hard 4 me to solve any1 help me with these?Thx anyway...


See More: I confuse 2 problems

Report •


#1
March 30, 2009 at 20:08:13
So i didn't say an assignment,but i can say your sense is very keen : ).

Report •
Related Solutions


Ask Question