forked from Xiaoyuan-Liu/Student-Information-Manage-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstudent.cpp
More file actions
41 lines (33 loc) · 724 Bytes
/
student.cpp
File metadata and controls
41 lines (33 loc) · 724 Bytes
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
39
40
41
#include"student.h"
const string student::getName(){
return name;
}
const string student::getOrientation(){
return orientation;
}
const int student::getId(){
return id;
}
const int student::getAge(){
return age;
}
const int student::getGPA(){
return GPA;
}
const int student::getGPARank(){
return GPARank;
}
bool student::operator ==(student stu){
return (age==stu.age)
&& (name==stu.name)
&& (orientation==stu.orientation)
&&(id == stu.id)
&&(GPA==stu.GPA)
&&(GPARank == stu.GPARank);
}
bool student::operator ==(string name){
return this->name == name;
}
bool student::operator ==(int id){
return this->id == id;
}