摘要:
#include #define LEN 5 int a[LEN] = { 10, 5, 2, 4, 7 }; void insertion_sort(void) { int i, j, key; for (j = 1; j = 0 && a[i] > key) { a[i+1] = a[i]; i--; } a[i+1] = key; } printf("%d,... 阅读全文
posted @ 2011-01-06 22:13 天地玄黄 阅读(212) 评论(0) 推荐(0) 编辑