#include #include using namespace std; //Minh is student of HCMUS, taking 5 courses, 6 courses/semester class School { public: //constructor School(){} School(int NumberOfClass) { NumberOfClass = 50; } School(int NumberOfStudent) { NumberOfStudent = 2000; } School(int NumberOfTeacher) { int teacher = 300; NumberOfTeacher = teacher; } School(int NumberOfClassroom) { NumberOfClassroom = 400; } //print function void Print(string SchoolName) { cout << "School Name: " << SchoolName << endl; } //destructor ~School(){} }; class Student { private: School* school; Course* enrolledCourses[6]; public: //constructor Student(){} Student(string Sex) { Sex = "male"; } Student(School* school) { school = new School; this->school = school; } Student(Course* enrolledCourses[6]) { for (int i = 0; i < 6; i++) { this->enrolledCourses[i] = enrolledCourses[i]; } } Student(School* school, Course* enrolledCourses[6]) { school = new School; this->school = school; for (int i = 0; i < 6; i++) { this->enrolledCourses[i] = enrolledCourses[i]; } } //print function void Print() { cout << "School Name: " << this->school << endl; cout << "Courses:" << endl; for (int i = 0; i < 6; i++) { cout << this->enrolledCourses[i] << endl; } } //Check function bool enroll(Course* cs) { } //destructor ~Student(){} }; class Semester { private: School* school; public: //constructor Semester(){} Semester(int NumberOfSemester) { NumberOfSemester = 3; } Semester(School* school) { school = new School; this->school = school; } Semester(int NumberOfLecture) { NumberOfLecture = 11; } Semester(string TimePerSemester) { TimePerSemester = "3 months"; } //Print function void Print() { cout << "School :" << school << endl; } //destructor ~Semester(){} }; class Course { private: Semester* semester; int numStudents; int maxStudents; public: //constructor Course(){} Course(Semester* semester) { semester = new Semester; this->semester = semester; } Course(int numStudents) { this->numStudents = numStudents; } Course(int maxStudents) { this->maxStudents = maxStudents; } Course(Semester* semester, int numStudents, int maxStudents) { this->semester = semester; this->numStudents = numStudents; this->maxStudents = maxStudents; } //Print function void Print() { cout << "Number of semester: " << this->semester << endl; cout << "Number of students:" << this->numStudents << endl; cout << "Max students: " << this->maxStudents << endl; } //enroll function bool enroll(Course* cs); //destructor ~Course(){} };