-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFaculty.cpp
More file actions
executable file
·59 lines (48 loc) · 1.29 KB
/
Copy pathFaculty.cpp
File metadata and controls
executable file
·59 lines (48 loc) · 1.29 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
48
49
50
51
52
53
54
55
56
57
58
59
// Jaden Heller
// 2328279
// jaheller@chapman.edu
// CPSC-350-01
// Assignment 6
#include "Faculty.h"
Faculty::Faculty(){
department;
adviseeList = new myList<int>();
}
Faculty::Faculty(int fac_id, string fac_name, string fac_level, string fac_department){
idNum = fac_id;
name = fac_name;
level = fac_level;
department = fac_department;
adviseeList = new myList<int>();
}
Faculty::~Faculty(){
delete adviseeList;
}
void Faculty::setFacDepartment(string facDepartment){
department = facDepartment;
}
string Faculty::getFacDepartment(){
return department;
}
//adviseeList functions:
void Faculty::addAdvisee(int ID){
adviseeList->Append(ID);
}
void Faculty::removeAdvisee(int ID){
adviseeList->Remove(ID);
}
int Faculty::getAdviseeIDs(){ //Return student ID number of all advisees
return adviseeList->ReturnAll();
}
myList<int>* Faculty::getAdviseeList(){ //Return a pointer to the adviseeList
return adviseeList;
}
void Faculty::printInfo(){
cout << "ID Number: " << getID() << endl;
cout << "Name: " << getName() << endl;
cout << "Level: " << getLevel() << endl;
cout << "Department: " << department << endl;
cout << "Advisees: ";
adviseeList->Print();
cout << endl;
}