Skip to content
Snippets Groups Projects
Commit 168d1c96 authored by Jakub Janák's avatar Jakub Janák
Browse files

contains y for saving file added

parent a3fb1ab4
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,7 @@ void Controller::solve(const int num_of_threads) {
std::string userInput;
std::cout << "Save the result graph[y for yes]: ";
std::getline(std::cin, userInput);
if (userInput == "y") {
if (userInput.find('y') != std::string::npos) {
std::cout << "Name of the file: ";
std::getline(std::cin, userInput);
instance->save(userInput);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment