2022-07-04 22:17:38 +08:00
|
|
|
/*
|
2022-07-06 14:06:57 +08:00
|
|
|
* 课程表DAO
|
2022-07-04 22:17:38 +08:00
|
|
|
*/
|
2022-07-06 14:06:57 +08:00
|
|
|
#ifndef COURSE_H
|
|
|
|
#define COURSE_H
|
2022-07-03 18:22:02 +08:00
|
|
|
|
|
|
|
#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:
|
2022-07-06 14:06:57 +08:00
|
|
|
string id;//课程号
|
|
|
|
string name;//课程名
|
2022-07-03 18:22:02 +08:00
|
|
|
};
|
|
|
|
|
2022-07-06 14:06:57 +08:00
|
|
|
#endif // !COURSE_H
|