摘要:
#include <stdio.h>void shell_sort (int *a, int len);void swap (int *a, int i, int j);void print (int *a, int len);int main (void){ int a[] = {3, 0, 2, 4, 8, 7, 1, 5}; int len = sizeof (a) / sizeof (a[0]); print (a, len); shell_sort (a, len); print (a, len); return 0;}void shell_sort (int *a, i 阅读全文