会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
shanlu
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
9
10
11
12
13
14
15
16
17
···
44
下一页
2020年5月13日
在二叉树中查找指定值结点的所有祖先
摘要: #include<stdio.h> #include<stdlib.h> //用二叉链表存储方式建树(完全二叉树) typedef struct BitTree { int data; struct BitTree* LChild; //左子树 struct BitTree* RChild; //右
阅读全文
posted @ 2020-05-13 00:59 shanlu
阅读(2617)
评论(0)
推荐(0)
2020年5月12日
利用栈结构完成队列元素逆置
摘要: 1,将1-9入队列 2,出队列 3,进栈 4,出栈 #include<stdio.h> #include<stdlib.h> #include "stack.h"; #define Capacity 9 typedef struct Node { int data; struct Node* nex
阅读全文
posted @ 2020-05-12 22:21 shanlu
阅读(2169)
评论(0)
推荐(0)
2020年4月25日
获取二叉树叶子节点个数
摘要: //获取二叉树叶子节点个数 #include<stdio.h> #include<stdlib.h> //用二叉链表存储方式建树(完全二叉树) typedef struct BitTree { int data; struct BitTree* LChild; //左子树 struct BitTre
阅读全文
posted @ 2020-04-25 22:16 shanlu
阅读(901)
评论(0)
推荐(0)
2020年4月16日
redux 异步
摘要: 1,redux 默认不能进行异步处理,当需要进行异步任务(ajax 请求,定时器等),需要使用 异步中间件 redux-thunk(redux 插件) 2,下载 : npm install --save redux-thunk 3, 在 store中 应用 异步中间件 4,在 action 中添加
阅读全文
posted @ 2020-04-16 18:24 shanlu
阅读(258)
评论(0)
推荐(0)
react-redux
摘要: 1,在 react 中单纯的使用 redux,react 和 redux 代码耦合度太高,经常需要用到 store 对象,为降低 react 和 redux 的耦合度,可以使用 react-redux 这种 react 插件, 2,下载 : npm install -- save react-red
阅读全文
posted @ 2020-04-16 17:17 shanlu
阅读(146)
评论(0)
推荐(0)
redux
摘要: 实现需求: 1,项目中引入 redux : npm install --save redux 2,首先在入口文件中 创建一个 store 对象 store 对象中要传入一个 reducer ,完成 reducer之前,假定 store 对象已经创建好,当store对象中的状态 state 发生改变的
阅读全文
posted @ 2020-04-16 13:07 shanlu
阅读(135)
评论(0)
推荐(0)
2020年4月14日
后序遍历二叉树
摘要: #include<stdio.h> #include<stdlib.h> //用二叉链表存储方式建树(完全二叉树) typedef struct BitTree { int data; struct BitTree* LChild; //左子树 struct BitTree* RChild; //右
阅读全文
posted @ 2020-04-14 18:34 shanlu
阅读(205)
评论(0)
推荐(0)
中序遍历二叉树
摘要: #include<stdio.h> #include<stdlib.h> //用二叉链表存储方式建树(完全二叉树) typedef struct BitTree { int data; struct BitTree* LChild; //左子树 struct BitTree* RChild; //右
阅读全文
posted @ 2020-04-14 18:30 shanlu
阅读(283)
评论(0)
推荐(0)
先序遍历二叉树
摘要: #include<stdio.h> #include<stdlib.h> //用二叉链表存储方式建树(完全二叉树) typedef struct BitTree { int data; struct BitTree* LChild; //左子树 struct BitTree* RChild; //右
阅读全文
posted @ 2020-04-14 18:24 shanlu
阅读(398)
评论(0)
推荐(0)
建立二叉树(二叉链表存储)
摘要: #include<stdio.h> #include<stdlib.h> //二叉链表 //typedef struct BitLink { // int data; // struct BitLink* leftChild; //左指针 // struct BitLink* rightChild;
阅读全文
posted @ 2020-04-14 18:00 shanlu
阅读(2872)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
44
下一页
公告