Skip to content

Commit 2a5766f

Browse files
ClémentClément
authored andcommitted
Working on quicksort.
1 parent ffd01d5 commit 2a5766f

File tree

3 files changed

+242
-256
lines changed

3 files changed

+242
-256
lines changed

source/code/projects/Sorting/Sorting/Program.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@ static void Main(string[] args)
1616
Demo.Run(Sorting<int>.ShellSort);
1717
Demo.Run(Sorting<char>.ShellSort);
1818

19-
Demo.Run(Sorting<int>.QuickSort);
20-
Demo.Run(Sorting<char>.QuickSort);
19+
Demo.Run(Sorting<int>.MergeSort);
20+
Demo.Run(Sorting<char>.MergeSort);
21+
22+
Console.WriteLine("Quick sort:");
23+
try
24+
{
25+
Demo.Run(Sorting<int>.QuickSort);
26+
Demo.Run(Sorting<char>.QuickSort);
27+
}catch (Exception e)
28+
{
29+
Console.Write(e.Message);
30+
}
2131
}
2232
}

0 commit comments

Comments
 (0)