Question: Using c++ only complete the following ******Do not use #include ********* Using the below code Change the structure name to student and change the contents

Using c++ only complete the following

******Do not use #include*********

Using c++ only complete the following ******Do not use #include********* Using the

Using the below code Change the structure name to student and change the contents of the structure to contain a name and a student number. Adapt the print function appropriately. Extend the functionality of the program with the following functions routines: void insert name(student * head, string name, int student number); int list length(student * head); bool find student(student * head, int student number); void print student details(student *head); Demonstrate the functionality by writing a program that allows the user to input an aribtrary number of students, specified by the user at run time. The program should store these students in a linked list. The program should keep inputting students until the user inputs a user with the name end at which point all the user details should be printed to the screen. #include #include using namespace std; struct customer { string name; customer* next; }; void print_customers(customer& head) { customer* cur=&head; while (cur != NULL) { cout name next; } } int main({ customer customer1, customer2, customer3; customerl.next=&customer2; customer2.next = &customer3; customer3.next = NULL; customerl.name "Jack"; customer2.name "Jane"; customer3.name = "Joe"; print_customers(customerl); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!