Пример #1
0
        static void Main(string[] args)
        {
            int[]          array = new int[10];
            int            key   = 0;
            Dataopenration dataopenreation;
            QuickSort      sortobj   = new QuickSort();
            Binarysearch   searchobj = new Binarysearch();

            //OpenrationAdapet adapet = new OpenrationAdapet(sortobj, searchobj);
            dataopenreation = new OpenrationAdapet(sortobj, searchobj);
            dataopenreation.Sort(array);
            dataopenreation.Search(array, key);
            Console.ReadKey();
        }
Пример #2
0
 public OpenrationAdapet(QuickSort sortobj, Binarysearch searchobj)
 {
     this.sortobj   = sortobj;
     this.searchobj = searchobj;
 }