![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
yejun556688
我是一个不甘平庸的人,我很喜欢交朋友!
展开
-
循环双链表的简单实现
//代码为自己编写,可能有问题,欢迎大家留言指正!#include #include using namespace std;typedef struct dnode{ int val; dnode *prior; dnode *next;}dnode;dnode * create();void traverse(dnode *pHead);bool insert(dn原创 2014-07-30 17:38:22 · 800 阅读 · 0 评论 -
链表实现的队列程序(仅供自己学习使用)
#include #include using namespace std;typedef struct nodet{ int val; nodet *next;}nodet;typedef struct queuet{ nodet * front; nodet * rear;}queuet; //队列结构void init_queue(queuet * q){原创 2014-07-31 10:46:34 · 774 阅读 · 0 评论 -
循环链表的简单应用(约瑟夫环问题场景)
题目:已知n原创 2014-07-30 21:08:55 · 1411 阅读 · 0 评论 -
单链表操作实例程序
#include #include using namespace std;typedef struct node{ int val; node *next;}node;node * create_list();void traverse_list(node *pHead);int get_len_list(node *pHead);bool delete_list(no原创 2014-07-30 15:00:09 · 1344 阅读 · 0 评论 -
链表实现的堆栈程序(仅供自己学习使用)
#include using namespace std;typedef struct Node{ int val; Node * pNext;} Node;typedef struct Stack //定义堆栈{ Node *pTop; //栈顶 Node *pButtom; //栈底}Stack; //初始化堆栈void init_stack(S原创 2014-07-31 11:39:11 · 580 阅读 · 0 评论