You need to include a print function. You may also refer to the linked list lecture for functions you must implement. You may also consider having the Head structure that will store the metadata of the list. struct Head { int count; Student *first; Student *last; }; Note: You are not allowed to used vector or any related function/datatype in creating the list Write a program that will create a linked list of Student information that can be added in an ordered manner. Use the structure declaration below for the student information. The program must be implemented using. • Singly Linked List ⚫ Doubly Liked List struct Student // Singly Linked List { string studnum; string fname; string sname; Student *link; }; struct Student // Doubly Linked List { string studnum; string fname; string name; Student *next; Student *prev; }

icon
Related questions
Question
You need to include a print function. You may also refer to the linked list lecture for functions you must implement.
You may also consider having the Head structure that will store the metadata of the list.
struct Head
{
int count;
Student *first;
Student *last;
};
Note: You are not allowed to used vector or any related function/datatype in creating the list
Transcribed Image Text:You need to include a print function. You may also refer to the linked list lecture for functions you must implement. You may also consider having the Head structure that will store the metadata of the list. struct Head { int count; Student *first; Student *last; }; Note: You are not allowed to used vector or any related function/datatype in creating the list
Write a program that will create a linked list of Student information that can be added in an ordered manner. Use the
structure declaration below for the student information. The program must be implemented using.
• Singly Linked List
⚫ Doubly Liked List
struct Student // Singly Linked List
{
string studnum;
string fname;
string sname;
Student *link;
};
struct Student // Doubly Linked List
{
string studnum;
string fname;
string name;
Student *next;
Student *prev;
}
Transcribed Image Text:Write a program that will create a linked list of Student information that can be added in an ordered manner. Use the structure declaration below for the student information. The program must be implemented using. • Singly Linked List ⚫ Doubly Liked List struct Student // Singly Linked List { string studnum; string fname; string sname; Student *link; }; struct Student // Doubly Linked List { string studnum; string fname; string name; Student *next; Student *prev; }
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer