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