摘要:
1 #include <iostream> 2 #include <cstdlib> 3 4 #define ARR_SIZE 10 5 6 using namespace std; 7 8 void shellshort(int a[]); 9 void CreateRandArr(int a[] 阅读全文
posted @ 2021-02-11 11:29
大黑耗
阅读(80)
评论(0)
推荐(0)
摘要:
1 #include <iostream> 2 #include <cstdlib> 3 4 #define ARR_SIZE 20 5 #define MIN(x, y) (x)>(y)?(y):(x) 6 using namespace std; 7 8 int kk= 0; 9 10 void 阅读全文
posted @ 2021-02-11 11:28
大黑耗
阅读(90)
评论(0)
推荐(0)
摘要:
1 #include <iostream> 2 #include <cstdlib> 3 4 #define ARR_SIZE 10 5 6 using namespace std; 7 8 /* 想象一下打牌时发完牌整理的时候,不同的是打牌我们一眼就能看出来这张牌应该插在哪个位置,而插入排序要逐一 阅读全文
posted @ 2021-02-11 11:23
大黑耗
阅读(70)
评论(0)
推荐(0)
摘要:
1 /* 选择排序 */ 2 3 #include <iostream> 4 #include <cstdlib> 5 6 #define ARR_SIZE 10 7 8 using namespace std; 9 10 void chosesort(int a[]); 11 void Creat 阅读全文
posted @ 2021-02-11 11:20
大黑耗
阅读(60)
评论(0)
推荐(0)