摘要: #include void insertSort(int a[], int n){ int temp; int i; for(i = 1; i void binsort(int a[], int n){ int i; for(i = 1; i = low; j--) a[j] = a[j - 1]; a[low] = temp; } }int main(){ int a[4] = {5, 1, 4, 8}; int i; binsort(a, 4); for(i = 0; i < 4; i++) printf("%d ", a[i]); printf("\n 阅读全文
posted @ 2014-03-22 14:18 elroyzhang 阅读(139) 评论(0) 推荐(0) 编辑