c/c++课的作业合集,都是很简单的文件。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
cpp-work/work20220325/person/TeachAssistant.cpp

17 lines
780 B

#include <sstream>
#include "TeachAssistant.h"
TeachAssistant::TeachAssistant(int classId, const Person &person, const std::string &subject, const Teacher &adviser,
const std::string &job, const std::string &department)
: Graduate(classId, person, subject, adviser), Teacher(person, job, department), Person(person) {}
std::string TeachAssistant::toString() {
std::stringstream output;
output << "[研究生身份信息]" << '\n'
<< Graduate::toString() << '\n'
<< "[教师身份信息]" << '\n'
<< Teacher::toString();
return output.str();
}
TeachAssistant::TeachAssistant(const TeachAssistant &teachAssistant) : Graduate(teachAssistant), Teacher(teachAssistant), Person(teachAssistant) {}