上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 44 下一页
摘要: #include<stdio.h> #include<stdlib.h> //用二叉链表存储方式建树(完全二叉树) typedef struct BitTree { int data; struct BitTree* LChild; //左子树 struct BitTree* RChild; //右 阅读全文
posted @ 2020-05-13 00:59 shanlu 阅读(2448) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(2044) 评论(0) 推荐(0) 编辑
摘要: //获取二叉树叶子节点个数 #include<stdio.h> #include<stdlib.h> //用二叉链表存储方式建树(完全二叉树) typedef struct BitTree { int data; struct BitTree* LChild; //左子树 struct BitTre 阅读全文
posted @ 2020-04-25 22:16 shanlu 阅读(864) 评论(0) 推荐(0) 编辑
摘要: 1,redux 默认不能进行异步处理,当需要进行异步任务(ajax 请求,定时器等),需要使用 异步中间件 redux-thunk(redux 插件) 2,下载 : npm install --save redux-thunk 3, 在 store中 应用 异步中间件 4,在 action 中添加 阅读全文
posted @ 2020-04-16 18:24 shanlu 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1,在 react 中单纯的使用 redux,react 和 redux 代码耦合度太高,经常需要用到 store 对象,为降低 react 和 redux 的耦合度,可以使用 react-redux 这种 react 插件, 2,下载 : npm install -- save react-red 阅读全文
posted @ 2020-04-16 17:17 shanlu 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 实现需求: 1,项目中引入 redux : npm install --save redux 2,首先在入口文件中 创建一个 store 对象 store 对象中要传入一个 reducer ,完成 reducer之前,假定 store 对象已经创建好,当store对象中的状态 state 发生改变的 阅读全文
posted @ 2020-04-16 13:07 shanlu 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> //用二叉链表存储方式建树(完全二叉树) typedef struct BitTree { int data; struct BitTree* LChild; //左子树 struct BitTree* RChild; //右 阅读全文
posted @ 2020-04-14 18:34 shanlu 阅读(194) 评论(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 阅读(263) 评论(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 阅读(371) 评论(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 阅读(2809) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 44 下一页