风萧28

C语言排序

void swap(int *x, int *y){ int tmp; tmp = *x; *x = *y; *y = tmp; } void insert_sort(int *array, int n){ int i; for (i=1;i=0 && tmp array[j+1]){ swap(&array[j],...

posted on 2019-06-16 16:45  小流江海  阅读(207)  评论(0编辑  收藏  举报

导航