-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
29 lines (26 loc) · 745 Bytes
/
Copy pathMain.cpp
File metadata and controls
29 lines (26 loc) · 745 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
#include <iostream>
#include "Bus_Ñompany.h"
using namespace std;
int main() {
int name_bus;
Bus_Ñompany Posh("Posh Bus Company");
Bus_Ñompany Grotty("Grotty Bus Company");
cout << "Enter the name of the bus company: " << endl;
cout <<"1."<< Posh.GetNameCompany() << endl;
cout <<"2."<< Grotty.GetNameCompany() << endl;
cin >> name_bus;
if (name_bus == 1) {
Posh.AddTime("10:15", "11:10");
Posh.AddTime("10:10", "11:00");
Posh.AddTime("12:05", "12:30");
Posh.AddTime("17:25", "18:01");
Posh.Print();
}
else if (name_bus == 2) {
Grotty.AddTime("10:10", "11:00");
Grotty.AddTime("16:30", "18:45");
Grotty.AddTime("12:30", "13:25");
Grotty.AddTime("12:45", "13:25");
Grotty.Print();
}
}