-
Notifications
You must be signed in to change notification settings - Fork 1
/
Student.h
38 lines (30 loc) · 923 Bytes
/
Student.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include<iostream>
#include<list>
#include"Record.h"
using namespace std;
class Student
{
string Marjor;
string Id;
string Name;
string uid;
list<Record> records;
public:
Student();
Student(const string major, const string id, const string name, const string uid);
Student(const Student &stu);
Student(const string major, const string id, const string name);
void setMarjor(const string &major);
void setId(const string &id);
void setName(const string &name);
void setUId(const string uid);
string getMarjor();
string getId();
string getName();
string getUId();
void pushRecord(Record record);//放入学生数据
list<Record> getRecords();//获得学生数据
void setRecords(list<Record> records);//设置学生数据
string toString();//打印把学生数据整理成string
};