-
Notifications
You must be signed in to change notification settings - Fork 0
/
Appointment.cpp
51 lines (36 loc) · 1.05 KB
/
Appointment.cpp
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
#include <iostream>
#include "Appointment.h"
Appointment::Appointment(int ID,int day,int time,string complaint,string department,string preferred)
:ID(ID),day(day),time(time),complaint(complaint),department(department),preferred(preferred) {
}
Appointment::Appointment() {
}
void Appointment::showAppointment() {
string dayNames[] = {"Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday",
"Sunday"};
cout << "ID: " << ID << endl;
cout << "Day: " << dayNames[day] << endl;
cout << "Time: " << time + 12 << ":00" << endl;
cout << "Complaint: " << complaint << endl;
}
void Appointment::cancel() {
}
int Appointment::getID() const {
return this->ID;
}
int Appointment::getDay() const {
return this->day;
}
int Appointment::getTime() const {
return this->time;
}
string Appointment::getComplaint() {
return this->complaint;
}
string Appointment::getDepartment() {
return this->department;
}
string Appointment::getPreferred() {
return this->preferred;
}