We know that in linked list we have one value and one pointer (to hold the memory address of next node). Note that it is not compulsory to have only one value. There can be more than one value in one node but pointer will remain one.View more random threads:
- CS615 Software Project Management Assignment No.1 Solution...
- CS506 Web Design and Development Assignment No. 04 SEMESTER...
- CS610 Computer Network Assignment No.1 Solution Spring...
- Assignment No. 3 Semester: Spring 2015 Computer Network-...
- CS602 Computer Graphics Assignment No.1 Solution Spring...
- CS609 System Programming Assignment No.1 Solution Spring...
- CS402 Assignment No.4 Spring 2011
- CS607 Artificial Intelligence Assignment No.1 Solution...
- mth202 discrete mathmatics second assignment solution fall...
- CS301 Data Structures assignment no 1 spring 25 October 2011
Write a C++ program to implement linked list data structure. In this problem every node should have six values, the name of node and a pointer. Your program should prompt the user to enter total number of nodes in the list. After this give the name to node and save 6 different values in node. Process should be repeated for each node.
After entering values of all the nodes, sum the values in each node and sort the list in ascending order (on the basis of sum calculated in each node) i.e. node with smallest sum comes first and node with largest sum comes
last.
Note: Values within a single node should not duplicate. If a user tries to enter any duplicate value WITHIN A NODE then show a warning message and ask user to enter value again.
untitled.JPG
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)