From 4085f4a9715bbfd9c21cc66e3ab8595164207c41 Mon Sep 17 00:00:00 2001 From: Eric Lin <93724436+Eric-exe@users.noreply.github.com> Date: Sun, 24 Sep 2023 12:56:45 -0400 Subject: [PATCH] Remove wait to exit (helps with memory) --- main.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/main.cpp b/main.cpp index 9abfcb7..0bd5ed8 100644 --- a/main.cpp +++ b/main.cpp @@ -51,7 +51,7 @@ int main() { } std::cout << SUCCESS << "Read config.ini successfully!" << std::endl; - std::cout << ALERT << "Setting config values... " << std::endl; + std::cout << ALERT << "Setting config values... (" << maxQueueSize << "," << maxExprLength << ")" << std::endl; // set config values MAX_QUEUE_SIZE = maxQueueSize; @@ -141,16 +141,12 @@ int main() { if (steps.back()[1] == "Too many steps :(") { std::cout << FAILURE << "Too many in queue :(. " << std::endl; std::cout << ALERT << "Tweak config ini by reducing logical expression length or increasing queue size" << std::endl; - std::cout << ALERT << "Press any key to exit..." << std::endl; - std::cin.get(); return 1; } else if (steps.back()[1] == "Couldn't find a solution :(") { // check if the last step is not "Couldn't find a solution :(" std::cout << FAILURE << "Couldn't find a solution :(. " << std::endl; std::cout << ALERT << "Tweak config ini by reducing logical expression length or increasing queue size" << std::endl; - std::cout << ALERT << "Press any key to exit..." << std::endl; - std::cin.get(); return 1; } else { @@ -189,12 +185,9 @@ int main() { std::cout << step[0] << step[1] << std::endl; } - // wait for user to press to press any key to exit std::cout << "====================================================================" << std::endl; - std::cout << ALERT << "Press any key to exit..." << std::endl; - std::cin.get(); return 0; -} \ No newline at end of file +}