摘要: #include <stdio.h> void Test_Demo( void ( *FUNC )( int a,int b),int x,int y ){ //int a = 1; //int b = 5; FUNC(x,y);} void func(int x,int y){ printf("% 阅读全文
posted @ 2018-12-08 19:11 请叫我晓风哥哥 阅读(153) 评论(0) 推荐(0) 编辑
摘要: /*******************************///va_start、va_end、va_arg 实现可变长参数/*******************************/ #include <stdarg.h>#include <stdio.h> #define END_N 阅读全文
posted @ 2018-12-08 19:11 请叫我晓风哥哥 阅读(653) 评论(0) 推荐(0) 编辑
摘要: /* 数组指针实质是一个指针,它指向数组,如对于一个二维数组指针,指针指向每行元素的首地址*//*#include<stdio.h> int main(){ int a[3][3]={1,2,3,4,5,6,7,8,9}; int (*Pint)[3]=&a[0]; printf("%d\n",(* 阅读全文
posted @ 2018-12-08 19:03 请叫我晓风哥哥 阅读(447) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<malloc.h>#define sqstack_Initsize 20#define sqstack_Increase_size 20#define OK 1#define ERROR 0typedef str 阅读全文
posted @ 2018-12-08 18:58 请叫我晓风哥哥 阅读(154) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<malloc.h>#define OK 1#define ERROR 0typedef struct Node{ int data; struct Node *next;}Node,*Lnode;typedef 阅读全文
posted @ 2018-12-08 18:52 请叫我晓风哥哥 阅读(401) 评论(0) 推荐(0) 编辑
摘要: /*注意事项: if((Q->front)%Maxsize!=Q->rear )而不是 if((Q->front+1)%Maxsize!=Q->rear )*/#include<stdio.h>#include<malloc.h>#include<stdlib.h>#define ElemType 阅读全文
posted @ 2018-12-08 18:51 请叫我晓风哥哥 阅读(190) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<malloc.h>#include<stdlib.h>#define OK 1#define ERROR 0typedef struct Node{ int data; struct Node *next;}Node,*Lnode;typedef 阅读全文
posted @ 2018-12-08 18:50 请叫我晓风哥哥 阅读(106) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<malloc.h>#include<stdlib.h>#include<string.h>#define TRUE 1#define OK 1#define FALSE 0#define ERROR 0#define NULL 0#define O 阅读全文
posted @ 2018-12-08 18:49 请叫我晓风哥哥 阅读(398) 评论(0) 推荐(0) 编辑
摘要: /*删除节点时,无须找到要删除节点的前驱节点,直接对目标节点进行删除操作。*/#include<stdio.h>#include<stdlib.h>#include<string.h>#include<malloc.h>#define OK 1#define ERROR 0 typedef stru 阅读全文
posted @ 2018-12-08 18:47 请叫我晓风哥哥 阅读(165) 评论(0) 推荐(0) 编辑
摘要: /*问题总结:链表销毁时出现错误,注意链表销毁操作。*/#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 请叫我晓风哥哥 阅读(613) 评论(0) 推荐(0) 编辑