Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
2 files changed, 7 insertions, 2 deletions
-rw-r--r--src/EventSystem/EventSystem.h2
-rw-r--r--src/VenueConsoleUI.cpp7
diff --git a/src/EventSystem/EventSystem.h b/src/EventSystem/EventSystem.h
index cccb7e6..eadcc42 100644
--- a/src/EventSystem/EventSystem.h
+++ b/src/EventSystem/EventSystem.h
@@ -25,7 +25,7 @@ public:
StatusCode buyTicket();
void queryUpcoming(unsigned hallIndex);
- unsigned queryFreeSeats(unsigned eventIndex);
+ unsigned queryFreeSeats(const char* name, const DateTime& dt);
void queryReservations(unsigned eventIndex);
void queryBoughtTickets(DateTime start, DateTime end, unsigned hall);
void queryMostVisited();
diff --git a/src/VenueConsoleUI.cpp b/src/VenueConsoleUI.cpp
index 61f6fd2..b3bdc11 100644
--- a/src/VenueConsoleUI.cpp
+++ b/src/VenueConsoleUI.cpp
@@ -37,7 +37,12 @@ void command_newEvent() {
/* Ticket Management */
void command_freeSeats() {
-
+ char name[MAX_LINE_WIDTH];
+ inputLineBox("Enter event name: ", name, MAX_LINE_WIDTH);
+ DateTime dt;
+ inputBox("Enter event date and time: ", &dt);
+ printSuccess("Number of free seats: ");
+ print()
}
void command_reserveTicket() {