From 3b45ae4d0207a7cacfbdae4f4acde1a94d1fe033 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 22 Jul 2019 10:17:36 -0300 Subject: [PATCH] Cosmetic changes --- Interface.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Interface.cpp b/Interface.cpp index 996bc78..1afb2d6 100644 --- a/Interface.cpp +++ b/Interface.cpp @@ -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& 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: {