Question: C++ ONLY; no break statements and no global variables Define a structure Student with a name and a vector of courses. Define a structure Course

C++ ONLY; no break statements and no global variables

Define a structure Student with a name and a vector of courses. Define a structure Course with a name and a vector of enrolled students. Then define these functions:

void print_student(Student* s) that prints the name of a student and the names of all

courses that the student takes.

void print_course(Course* c) that prints the name of a course and the names of all

students in that course.

void enroll(Student* s, Course* c) that enrolls the given student in the given

course, updating both vectors.

C++ ONLY; no break statements and no global variables

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!