摘要:
#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 阅读全文
摘要:
#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("% 阅读全文
摘要:
/*******************************///va_start、va_end、va_arg 实现可变长参数/*******************************/ #include <stdarg.h>#include <stdio.h> #define END_N 阅读全文
摘要:
/* 数组指针实质是一个指针,它指向数组,如对于一个二维数组指针,指针指向每行元素的首地址*//*#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",(* 阅读全文
摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
/*注意事项: if((Q->front)%Maxsize!=Q->rear )而不是 if((Q->front+1)%Maxsize!=Q->rear )*/#include<stdio.h>#include<malloc.h>#include<stdlib.h>#define ElemType 阅读全文
摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
/*删除节点时,无须找到要删除节点的前驱节点,直接对目标节点进行删除操作。*/#include<stdio.h>#include<stdlib.h>#include<string.h>#include<malloc.h>#define OK 1#define ERROR 0 typedef stru 阅读全文