Website Summary Files Commits Branches @commit @diff @stats
path: root / src / ConsoleInterface / Menu.cpp
diff options
context:
space:
mode:
Commit1f396fa815d487678970ce493f6e4bb9f8baca57 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 15:14:00 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-05 15:14:00 +0300
Filesc1dd1e15a4e5dc6a6773a3e9a13edb13b05a8b43 /src/ConsoleInterface/Menu.cpp
FMI-OOP-P1_TicketSystem-1f396fa815d487678970ce493f6e4bb9f8baca57.tar
FMI-OOP-P1_TicketSystem-1f396fa815d487678970ce493f6e4bb9f8baca57.tar.gz
FMI-OOP-P1_TicketSystem-1f396fa815d487678970ce493f6e4bb9f8baca57.zip
Parent7ff3d608fa74a656ad6362a433cbfe5df412fdc1 (diff)
Autocommit at 05.05.2022 @ 15:14
1 files changed, 5 insertions, 3 deletions
-rw-r--r--src/ConsoleInterface/Menu.cpp8
diff --git a/src/ConsoleInterface/Menu.cpp b/src/ConsoleInterface/Menu.cpp
index 3df71ae..4112ed2 100644
--- a/src/ConsoleInterface/Menu.cpp
+++ b/src/ConsoleInterface/Menu.cpp
@@ -2,11 +2,13 @@
#include "Toolbox.hpp"
#include <cstring>
-Menu::Menu() : menuOptions() {
- strcpy(title, "Menu");
+Menu::Menu() : Menu("Menu") {}
+
+Menu::Menu(const char* title) : menuOptions() {
+ strcpy(this->title, title);
}
-Menu::Menu(const Command* commands, unsigned commandCount, const char* title) {
+Menu::Menu(const char* title, const Command* commands, unsigned commandCount) {
menuOptions = List<Command>(commands, commandCount);
strcpy(this->title, title);
}