본문내용
#include
#include
#define ELEMENT 200
void
bubble_sort(int array[], int),
insertion_sort(int array[], int),
selection_sort(int array[], int),
quick_sort(int array[], int, int, int);
.
.
.
.
.
printf("Select Number of Sorting Method\n");
printf("1. Bubble Sort 2. Selection Sort 3. Insertion Sort 4. Quick Sort\n Press 'q' to end\n");
select = getch();
switch(select)
{
case '1':
bubble_sort(array, num);
break;
case '2':
selection_sort(array, num);
break;
case '3':
insertion_sort(array, num);
break;
case '4':
quick_sort(array, 0, num - 1, num);
break;
}
#include
#define ELEMENT 200
void
bubble_sort(int array[], int),
insertion_sort(int array[], int),
selection_sort(int array[], int),
quick_sort(int array[], int, int, int);
.
.
.
.
.
printf("Select Number of Sorting Method\n");
printf("1. Bubble Sort 2. Selection Sort 3. Insertion Sort 4. Quick Sort\n Press 'q' to end\n");
select = getch();
switch(select)
{
case '1':
bubble_sort(array, num);
break;
case '2':
selection_sort(array, num);
break;
case '3':
insertion_sort(array, num);
break;
case '4':
quick_sort(array, 0, num - 1, num);
break;
}
소개글