摘要: /*问题总结:链表销毁时出现错误,注意链表销毁操作。*/#include<stdlib.h>#include<stdio.h>#include<malloc.h>#include<time.h>#define OK 1#define ERROR 0typedef struct Node{ int d 阅读全文
posted @ 2018-12-08 18:43 请叫我晓风哥哥 阅读(421) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h> #define ELEMENT_CNT 10 void merge(int *array,int low,int mid,int high){ int i,k; int left_low = low; int left_hi 阅读全文
posted @ 2018-12-08 18:39 请叫我晓风哥哥 阅读(157) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h> void swap(int *array,int a,int b){ int temp; temp = array[a]; array[a] = array[b]; array[b] = temp;} void heap_adj 阅读全文
posted @ 2018-12-08 18:36 请叫我晓风哥哥 阅读(111) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> void ShellSort(int a[], int length) { int increment; int i,j; int temp; for(increment = length/2; increment > 0 阅读全文
posted @ 2018-12-08 18:35 请叫我晓风哥哥 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> void Direct_Insert_Sort(int *Array) { int i,j,temp; for(i = 1; i < 5; i++) { if(Array[i]<Array[i-1]) { temp = Array[i]; for(j = i-1 阅读全文
posted @ 2018-12-08 18:32 请叫我晓风哥哥 阅读(78) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> void Simple_Select_Sort(int *Array,int length){ int i,j,min,temp; for(i = 0; i < length; i++) { min = i; for(j = i+1; j < length; j 阅读全文
posted @ 2018-12-08 18:31 请叫我晓风哥哥 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 快速排序: #include<stdio.h> int Array_Sort[] = {3,1,2,0,4,6,5,9,7,8}; int FindPos(int *Array,int low,int high) { int val = Array[low]; while(low<high) { w 阅读全文
posted @ 2018-12-08 18:28 请叫我晓风哥哥 阅读(97) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int Array[] = {2,0,1,3,4,8,6,7,5,9}; void Bubble_Sort(int *Array_Sort)注:此处可写int Array_Sort[10] { int i,j; int temp; for(i = 0; i < 1 阅读全文
posted @ 2018-12-08 18:26 请叫我晓风哥哥 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 作者简介: 1、毕业时间:2016年6月份。 2、毕业学校:河南科技大学。 3、毕业后一直从事单片机开发工作,工作地点:深圳。技术一般,但不甘做一条咸鱼,渴望有所突破,开通了博客,希望学习的过程中,不闭门造车,多与大家交流学习中遇到的困难与经验。QQ:586917320 学习交流群,希望可以学习C语 阅读全文
posted @ 2018-12-08 18:19 请叫我晓风哥哥 阅读(612) 评论(0) 推荐(0) 编辑