摘要: ## 排序 ### 插入排序 #### 直接插入排序 ```c++ //直接插入排序 void InsertSort(int A[], int n) { int i, j, temp; for (i = 1; i = 0 && A[j] > temp; j--) { //检查所有前面已拍好序的元素 阅读全文
posted @ 2023-08-26 16:25 Zh'Blog 阅读(63) 评论(0) 推荐(0) 编辑