linked list data structure.code for linked list data structure

Kindly provide me the proper code (solution) of this particuler problem.thanks



Problem Statement:

A Linked list is a dynamic data structure that consists of a list of nodes. The nodes of the linked list may reside anywhere in the memory. Each node is comprised of two parts-one to store actual data element while other holds address of next node.





program in C++ that contains following two classes:
1. Student Class
2. StudentList Class



Solution Guidelines:

 Student class should contain data members RollN0 and Student type pointer (Next) to hold address of next student.
 Student class should also contain setter and getter functions to set and retrieve value of RollN0 and Student type pointer (Next) respectively.
 StudentList class should include Add(char* Rollno) function which will add students in the list.
 At the end of Add(char* Rollno) function (after adding node in the list), you are also required to write a statement to display the RollNo of node Student that you have added in the list.
 In main() function, create only one object of the StudentList class and call add method. You must have to pass your own Roll Number as a value to this function.
 In the output of this program, Roll Number should be printed as given in Sample Output. In output instead of Sample Roll Number (MC000000000)





Topic archived. No new replies allowed.