#include "Student.h" #include "Course.h" #include #include using namespace std; int Student::numOfStu = 0; Student::Student() {} Student::Student(string a, string b, Course c) {name=a;ID=b;course=c;numOfStu++;} void Student::setName(string v) {name=v;} void Student::setID(string v) {ID=v;} void Student::setCourse(Course v) {course=v;} string Student::getName() const {return name;} string Student::getID() const {return ID;} Course Student::getCourse() const {return course;} int Student::getNumOfStu() {return numOfStu;} void Student::printStudent() {cout << name << ' ' << ID << ' '; course.printScore(); cout << endl;}