Website Summary Files Commits Branches @commit @diff @stats
path: root / src / VenueConsoleUI.cpp
diff options
context:
space:
mode:
Commitad78d67f131cc4e8ea158ecf01321cd498e72b56 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 20:18:50 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 20:18:50 +0300
Files021100e5e05f1d3c847eaf4030f4e36a8de211b3 /src/VenueConsoleUI.cpp
FMI-OOP-P1_TicketSystem-ad78d67f131cc4e8ea158ecf01321cd498e72b56.tar
FMI-OOP-P1_TicketSystem-ad78d67f131cc4e8ea158ecf01321cd498e72b56.tar.gz
FMI-OOP-P1_TicketSystem-ad78d67f131cc4e8ea158ecf01321cd498e72b56.zip
Parentb300191570fd24fd374360be1b0e4c9a4598a0f2 (diff)
Autocommit at 05.05.2022 @ 20:18
1 files changed, 3 insertions, 5 deletions
-rw-r--r--src/VenueConsoleUI.cpp8
diff --git a/src/VenueConsoleUI.cpp b/src/VenueConsoleUI.cpp
index 2799605..c801cfb 100644
--- a/src/VenueConsoleUI.cpp
+++ b/src/VenueConsoleUI.cpp
@@ -46,12 +46,10 @@ void command_reserveTicket() {
inputBox("Enter password [Max 8 characters]: ", &password);
char note[NOTE_LEN];
inputBox("Enter note [Max 32 characters]: ", &note);
- unsigned row;
- inputBox("Enter row: ", &row);
- unsigned seat;
- inputBox("Enter seat: ", &seat);
+ Ticket tic;
+ inputBox("Enter row and seat: ", &tic);
- handleStatusCode(v->get_es().reserveTicket(name, date, password, note, row, seat), ticketManagementMenu);
+ handleStatusCode(v->get_es().reserveTicket(name, date, password, note, tic), ticketManagementMenu);
}
void command_cancelReservation() {