Cosmetic changes
This commit is contained in:
parent
8778a72c29
commit
3b45ae4d02
@ -57,8 +57,8 @@ begin:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 2: {
|
case 2: {
|
||||||
string lol;
|
|
||||||
report_customer(c.id);
|
report_customer(c.id);
|
||||||
|
string lol;
|
||||||
std::cout<<"Enter any character to continue...";
|
std::cout<<"Enter any character to continue...";
|
||||||
std::cin>>lol;
|
std::cin>>lol;
|
||||||
break;
|
break;
|
||||||
@ -86,6 +86,7 @@ exit:;
|
|||||||
void interface_admin(vector<Park_spot>& spots) {
|
void interface_admin(vector<Park_spot>& spots) {
|
||||||
__label__ begin, exit;
|
__label__ begin, exit;
|
||||||
begin:
|
begin:
|
||||||
|
system("CLS");
|
||||||
cout << "\nWelcome to the admin interface\n";
|
cout << "\nWelcome to the admin interface\n";
|
||||||
cout << "\n[1] Reports & analytics";
|
cout << "\n[1] Reports & analytics";
|
||||||
cout << "\n[2] Parking spots";
|
cout << "\n[2] Parking spots";
|
||||||
@ -103,6 +104,7 @@ begin:
|
|||||||
cout << "[4] See weekly report of a specific parking spot\n";
|
cout << "[4] See weekly report of a specific parking spot\n";
|
||||||
cout << "[5] See monthly report of a specific customer\n";
|
cout << "[5] See monthly report of a specific customer\n";
|
||||||
cout << "[6] See weekly report of a specific customer\n";
|
cout << "[6] See weekly report of a specific customer\n";
|
||||||
|
cout << "[7] Return\n";
|
||||||
cout << "Enter option number: ";
|
cout << "Enter option number: ";
|
||||||
int option_1;
|
int option_1;
|
||||||
cin >> option_1;
|
cin >> option_1;
|
||||||
@ -132,9 +134,17 @@ begin:
|
|||||||
report_customer(0, true);
|
report_customer(0, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 7: {
|
||||||
|
goto begin;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
string lol;
|
||||||
|
std::cout<<"Enter any character to continue...";
|
||||||
|
std::cin>>lol;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case 2: {
|
case 2: {
|
||||||
cout << "[1] See current status of parking spots\n";
|
cout << "[1] See current status of parking spots\n";
|
||||||
@ -147,6 +157,9 @@ begin:
|
|||||||
switch (option_2) {
|
switch (option_2) {
|
||||||
case 1: {
|
case 1: {
|
||||||
current_status_parkspots(spots);
|
current_status_parkspots(spots);
|
||||||
|
string lol;
|
||||||
|
std::cout<<"Enter any character to continue...";
|
||||||
|
std::cin>>lol;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 2: {
|
case 2: {
|
||||||
@ -160,6 +173,7 @@ begin:
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 3: {
|
case 3: {
|
||||||
|
Loading…
Reference in New Issue
Block a user