Question: Write a C++ program to implement linked list data structure. In this problem every node should have two data elements called name and course of

Write a C++ program to implement linked list data structure. In this problem every node should have two data elements called name and course of a student and a pointer to link the current node to the next node. Your program should prompt the user to enter name and course code of a student and save it into a Node (Student). User can enter the records of multiple students. So you need to create a linked list of students. One node of list will represent one student.


Instead of saving the name of course you should use code of course into Student node. This will help you save lots of memory. "short int type variable can be usecd to save code of course which will take two bytes while name of course will take mainy bytes. This technique will help you save lots of memory.


Use the following course names and codes while entering the record of a student.


Course Name Introduction to Computing Introduction to Programming Data Structures Object Oriented


Course Name Introduction to Computing Introduction to Programming Data Structures Object Oriented Programming Course Code 1 2 3 4

Step by Step Solution

3.42 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!