![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
topmostmvp
to strong
展开
-
通过数据结构实现对队列的一般操作
队列1. 静态循环队列2. 链式队列 1. 静态循环队列 代码: # include <stdio.h> # include <malloc.h> # include <stdlib.h> # include <stdbool.h> typedef struct Queue { int *pBase; int front; ...原创 2020-03-11 19:14:31 · 84 阅读 · 0 评论 -
通过数据结构实现对栈的一般操作
代码: # include <stdio.h> # include <malloc.h> # include <stdlib.h> # include <stdbool.h> typedef struct Node { int data; struct Node * pNext; }NODE, * PNODE; typedef struct ...原创 2020-03-11 11:28:23 · 70 阅读 · 0 评论 -
通过数据结构实现对链表的一般操作
代码: # include <stdio.h> # include <malloc.h> # include <stdlib.h> # include <stdbool.h> typedef struct Node { int data; //数据域 struct Node * pNext; //指针域 }NODE, *PNODE; //NOD...原创 2020-03-10 16:01:04 · 82 阅读 · 0 评论 -
通过数据结构实现对数组的一般操作
代码: # include <stdio.h> # include <malloc.h> # include <stdlib.h> # include <stdbool.h> struct Arr { int *pBase; int len; int cnt; }; void init_arr(struct Arr *, ...原创 2020-03-09 14:34:01 · 114 阅读 · 0 评论