会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
请叫我晓风哥哥
博客园
首页
新随笔
联系
管理
订阅
2018年12月25日
按键驱动总结方法一
摘要: #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 请叫我晓风哥哥
阅读(283)
评论(0)
推荐(0)
2018年12月8日
回调函数的用法
摘要: #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 请叫我晓风哥哥
阅读(158)
评论(0)
推荐(0)
va_start、va_end、va_arg 实现可变长参数
摘要: /*******************************///va_start、va_end、va_arg 实现可变长参数/*******************************/ #include <stdarg.h>#include <stdio.h> #define END_N
阅读全文
posted @ 2018-12-08 19:11 请叫我晓风哥哥
阅读(665)
评论(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 请叫我晓风哥哥
阅读(459)
评论(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 请叫我晓风哥哥
阅读(162)
评论(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 请叫我晓风哥哥
阅读(414)
评论(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 请叫我晓风哥哥
阅读(200)
评论(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 请叫我晓风哥哥
阅读(112)
评论(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 请叫我晓风哥哥
阅读(429)
评论(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 请叫我晓风哥哥
阅读(175)
评论(0)
推荐(0)
下一页
公告