Skip to content

Commit

Permalink
Remove wait to exit (helps with memory)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-exe authored Sep 24, 2023
1 parent 62d546e commit 4085f4a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 4085f4a

Please sign in to comment.