摘要: #include <bits/stdc++.h> using namespace std; const int maxn=10000; int A[maxn]; /* 选择排序: 从i-n进行枚举 */ void selectSort(int n){ for(int i=1;i<=n;i++){// 阅读全文
posted @ 2020-04-09 22:03 薄眠抛却陈年事。 阅读(121) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int maxn=10000; int A[maxn]; /* 插入排序: 按照从小到大排序时: 1.从2-n中循环数据 2.每个数据和前面的数据进行比较 3.小于前面的数据并且下表大于1的时候, 阅读全文
posted @ 2020-04-09 19:09 薄眠抛却陈年事。 阅读(144) 评论(0) 推荐(0) 编辑