2022-07-04 22:17:38 +08:00
|
|
|
|
/*
|
|
|
|
|
* ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>DAO
|
|
|
|
|
*/
|
2022-07-06 15:40:27 +08:00
|
|
|
|
#ifndef STUDENT_H
|
|
|
|
|
#define STUDENT_H
|
2022-07-03 18:22:02 +08:00
|
|
|
|
|
|
|
|
|
#include<string>
|
|
|
|
|
using std::string;
|
|
|
|
|
|
|
|
|
|
class Student {
|
|
|
|
|
public:
|
|
|
|
|
Student() { ; }
|
|
|
|
|
Student(string id, string name, string sex, string stuClass, string status) {
|
|
|
|
|
this->id = id;
|
|
|
|
|
this->name = name;
|
|
|
|
|
this->sex = sex;
|
|
|
|
|
this->stuClass = stuClass;
|
|
|
|
|
this->status = status;
|
|
|
|
|
}
|
|
|
|
|
string getId() { return id; }
|
|
|
|
|
void setId(string id) { this->id = id; }
|
|
|
|
|
string getName() { return name; }
|
|
|
|
|
void setName(string name) { this->name = name; }
|
|
|
|
|
string getSex() { return sex; }
|
|
|
|
|
void setSex(string sex) { this->sex = sex; }
|
|
|
|
|
string getStuClass() { return stuClass; }
|
|
|
|
|
void setStuClass(string stuClass) { this->stuClass = stuClass; }
|
|
|
|
|
string getStatus() { return status; }
|
|
|
|
|
void setStatus(string status) { this->status = status; }
|
|
|
|
|
|
|
|
|
|
string toString() {
|
2022-07-04 15:59:30 +08:00
|
|
|
|
return id + "\t" + name + "\t" + sex + "\t" + stuClass + "\t" + status;
|
2022-07-03 18:22:02 +08:00
|
|
|
|
}
|
|
|
|
|
private:
|
|
|
|
|
string id;//ѧ<><D1A7>
|
|
|
|
|
string name;//<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
string sex;//<2F>Ա<EFBFBD>
|
|
|
|
|
string stuClass;//<2F>༶
|
|
|
|
|
string status;//״̬<D7B4><CCAC><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7><EFBFBD><EFBFBD>ѧ<EFBFBD><D1A7>
|
|
|
|
|
};
|
|
|
|
|
|
2022-07-06 15:40:27 +08:00
|
|
|
|
#endif // !STUDENT_H
|