摘要: #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 阅读全文
posted @ 2011-07-27 08:08 jialejiahi 阅读(166) 评论(0) 推荐(0) 编辑