摘要: #define KEY_NONE 0//0xDFFE#define KEY1 0x0001#define KEY2 0x2000#define KEY1_LONG 0x0011#define KEY2_LONG 0x2100 typedef struct{ uint8_t slient; uint1 阅读全文
posted @ 2018-12-25 21:13 请叫我晓风哥哥 阅读(260) 评论(0) 推荐(0) 编辑
摘要: #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) 编辑