-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStudent.h
More file actions
47 lines (43 loc) · 1.04 KB
/
Student.h
File metadata and controls
47 lines (43 loc) · 1.04 KB
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
42
43
44
45
46
47
//Ewan Shen
//2396486
//ewshen@chapman.edu
//Michael Smith
//2396546
//michsmith@chapman.edu
//CPSC-350-01
//PA5
//header file for student class
#ifndef STUDENT_H
#define STUDENT_H
#include <string>
using namespace std;
class Student{
public:
Student();
Student(int id, string name, string level, string major, double gpa, int fid);
virtual ~Student();
// mutators and accessors
//accessors
int getID();
std::string getName();
std::string getLevel();
std::string getMajor();
double getGPA();
int getFID();
//mutators
void setID(int id);
void setName(string name);
void setLevel(string level);
void setMajor(string major);
void setGPA(double gpa);
void setFID(int fid);
private:
//private member variables
int m_ID;
std::string m_name;
std::string m_level;
std::string m_major;
double m_GPA;
int m_FID;
};
#endif