Пример #1
0
        public static void Main()
        {
            Multime M = new Multime(new BubbleSort(), new List <int> {
                2, 5, 1, 3, 4
            });

            M.Afis();
            M.ChangeSortingAlgorithm(new InjectionSort());
            M.Sort();
            M.Afis();
        }
        public static void Main()
        {
            Multime M = new Multime(SortingAlgorithm.BubbleSort, new List <int> {
                2, 5, 4, 6, 10, 9, 3
            });

            M.Sort();
            M.Afis();
        }