Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ int main()
system(CLEAR);
std::cout << "Sort changed to: " << Utils::getSortType(sortType) << std::endl;
}
else {
//Go to the first sorting algorithm
sortType = 0;
system(CLEAR);
std::cout << "Sort changed to " << Utils::getSortType(sortType) << std::endl;
}
break;

// Change sort type (decrease)
Expand All @@ -93,6 +99,16 @@ int main()
system(CLEAR);
std::cout << "Sort changed to: " << Utils::getSortType(sortType) << std::endl;
}
else {
//Go to the last sorting algorithm
while(Utils::hasNextSortType(sortType))
{
sortType++;
}

system(CLEAR);
std::cout << "Sort changed to: " << Utils::getSortType(sortType) << std::endl;
}
break;

// Change number of elements
Expand Down