![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程语音
伙上伴冰
妄想远方..........................
展开
-
队列代码
#include #include //队列特点:先进先出(FIFO) //队列:队首 队尾 //队列:线性队列 链表队列 //定义链表队列的节点 typedef struct node { int data; struct node *next; }node; //定义队列 typedef struct queue { node * front;原创 2016-03-30 19:42:20 · 400 阅读 · 0 评论 -
树代码
#include #include using namespace std; //定义树的节点类型 typedef struct Node { int data; struct Node * lchild; struct Node * rchild; } tree; //定义栈存储节点类型 typedef struct SNode { t原创 2016-03-30 19:43:30 · 412 阅读 · 0 评论