Skip to content

Commit cde2dc7

Browse files
committed
quick sort
1 parent 4bc3b25 commit cde2dc7

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

interface.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Interface
7575
timeEnd = std::chrono::high_resolution_clock::now();
7676
totalDuration = std::chrono::duration_cast<std::chrono::milliseconds>(timeEnd - timeStart);
7777
saveInfo(arr, algorithm, inputStyle, inputSize, totalDuration);
78-
// pauseConsole();
78+
pauseConsole();
7979
}
8080

8181
void clearConsole()

main.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
#include "fileManager.hpp"
66
#include "algorithms.hpp"
77

8+
FileManager fileManager;
9+
Interface userInterface;
10+
Algorithms algorithm;
11+
812
// Run all combinations, this function is just to make my life easier.
913
// Quick Sort (First) parou de rodar no crescente e decrescente de 100000
1014
// Quick Sort (Average) rodou em todos os casos sem problemas
1115
// Quick Sort (Median of Three) parou de rodar no crescente de 100000
1216
// Quick Sort (Random) rodou em todos os casos sem problemas
1317
void runAllCombinations()
1418
{
15-
FileManager fileManager;
16-
Interface userInterface;
1719

1820
AlgorithmType algorithms[] = {Quick_Sort_First, Quick_Sort_Average, Quick_Sort_Median, Quick_Sort_Random};
1921
InputType inputTypes[] = {Random, Crescente, Decrescente};
@@ -35,9 +37,6 @@ void runAllCombinations()
3537

3638
int main(void)
3739
{
38-
Interface userInterface;
39-
FileManager fileManager;
40-
Algorithms algorithm;
4140
AlgorithmType algorithmChoice;
4241
InputType inputChoice;
4342
std::string fileAddress;

0 commit comments

Comments
 (0)