2022-07-04 22:17:38 +08:00
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD>γ̱<EFBFBD>DAO
|
|
|
|
|
*/
|
2022-07-03 18:22:02 +08:00
|
|
|
|
#ifndef COURSE_CPP
|
|
|
|
|
#define COURSE_CPP
|
|
|
|
|
|
|
|
|
|
#include<string>
|
|
|
|
|
using std::string;
|
|
|
|
|
class Course
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
Course() { ; }
|
|
|
|
|
Course(string id, string name) {
|
|
|
|
|
this->id = id;
|
|
|
|
|
this->name = name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string getId() { return id; }
|
|
|
|
|
void setId(string id) { this->id = id; }
|
|
|
|
|
string getName() { return name; }
|
|
|
|
|
void setName(string name) { this->name = name; }
|
|
|
|
|
|
|
|
|
|
string toString() {
|
2022-07-04 15:59:30 +08:00
|
|
|
|
return id + "\t" + name;
|
2022-07-03 18:22:02 +08:00
|
|
|
|
}
|
|
|
|
|
private:
|
|
|
|
|
string id;//<2F>γ̺<CEB3>
|
|
|
|
|
string name;//<2F>γ<EFBFBD><CEB3><EFBFBD>
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // !COURSE_CPP
|