C
Rong-H
To be or not to be.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言 二叉树遍历
前序遍历 /**************************************************************** * 二叉树系列 前序遍历 * 先访问根节点,再访问左子树,最后访问右子树 *****************************************************************/ #include <stdio.h> #include <string.h> #include <stdlib.h>原创 2021-10-14 15:58:31 · 211 阅读 · 0 评论 -
callback回调函数设置方法
关键点是要定义一个所需的回调函数类型,之后就可以像使用其他的类型定义一样方便地使用和定义回调函数,简单示例如下: #include <stdio.h> #include <string.h> #include <stdlib.h> typedef void (*callback)(int code, char *msg); callback g_callback; void callback_fun(int code, char *msg) { prin原创 2021-08-30 16:44:50 · 821 阅读 · 0 评论
分享