static void Main(string[] args)
 {
     quickSort Q = new quickSort();
     Q.QSort(Arr, 0, Arr.Length - 1);
     for (int i = 0; i < Arr.Length; i++)
     {
         Console.WriteLine(Arr[i] + " ");
     }
 }
Beispiel #2
0
        public static void Main()
        {
            quickSort q_Sort = new quickSort();

            int[] array = { 4, 3, 1, 4, 6, 7, 5, 4, 32, 5, 26, 187, 8 };
            q_Sort.array = array;
            q_Sort.len   = q_Sort.array.Length;
            q_Sort.QuickSort();

            for (int j = 0; j < q_Sort.len; j++)
            {
                Console.WriteLine(q_Sort.array[j]);
            }
            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            quickSort q_Sort = new quickSort();

            int[] array = { 4, 3, 1, 4, 6, 7, 5, 4, 32, 5, 26, 187, 8 };
        }