摘要: 删除顺序表中指定区间的数据 阅读全文
posted @ 2019-04-09 17:41 Ghost4C 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 顺序表上数据的划分问题的实现 阅读全文
posted @ 2019-04-09 17:32 Ghost4C 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 顺序表中的数据的循环移动 注:顺序表本身并没有改变只是在输出顺序上做了点改变 阅读全文
posted @ 2019-04-09 17:22 Ghost4C 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 顺序表中重复数据的删除 阅读全文
posted @ 2019-04-09 15:39 Ghost4C 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 定位顺序表中最大和最小值 阅读全文
posted @ 2019-04-08 22:51 Ghost4C 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 方法:将VMwaretools 的压缩包复制到想要解压的地方,然后再进行提取 阅读全文
posted @ 2019-04-06 22:09 Ghost4C 阅读(994) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 void SelectSort(int *a, int l) 5 { 6 int min; 7 for (int i = 0; i < l; ++i) 8 { 9 for(int j = i + 1; j<l; j++) 10 { 11 if(a... 阅读全文
posted @ 2019-03-31 21:59 Ghost4C 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1 /*快速排序*/ 2 #include 3 #include 4 5 typedef struct 6 { 7 int *data; 8 int length; 9 }Sqlist; 10 11 12 /*顺序表的初始化*/ 13 void InitList(Sqlist &L, int l) 14 { 15 L.data = (int*)ma... 阅读全文
posted @ 2019-03-31 17:31 Ghost4C 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1 /*冒泡排序的实现*/ 2 #include 3 4 void BubbleSort(int *a, int l) 5 { 6 int tmp; 7 for(int i = 0; i < l; i++) 8 { 9 for(int j=i+1; j<l; j++) 10 { 11 if(a[j... 阅读全文
posted @ 2019-03-31 11:45 Ghost4C 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 typedef struct 5 { 6 int *data; 7 int length; 8 }Sqlist; 9 10 11 /*顺序表的初始化*/ 12 void InitList(Sqlist &L, int l) 13 { 14 L.data = (int*)malloc((l+1)*s... 阅读全文
posted @ 2019-03-31 11:27 Ghost4C 阅读(460) 评论(0) 推荐(0) 编辑