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 Programming Course Code 1 2 3 4
Step by Step Solution
3.42 Rating (146 Votes )
There are 3 Steps involved in it
Step: 1
The detailed ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started