/* * 课程表DAO */ #ifndef COURSE_H #define COURSE_H #include 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() { return id + "\t" + name; } private: string id;//课程号 string name;//课程名 }; #endif // !COURSE_H