From ad78d67f131cc4e8ea158ecf01321cd498e72b56 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 5 May 2022 20:18:50 +0300 Subject: Autocommit at 05.05.2022 @ 20:18 --- src/VenueConsoleUI.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/VenueConsoleUI.cpp') 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]: ", ¬e); - 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() { -- cgit v1.3.1-23-gd82d