数据结构
Andy001847
我步入丛林,是为了活得深刻。
展开
-
数据结构——顺序栈(C语言实现)
/* 顺序栈实现 */ #include #define SIZE 50 static int data[SIZE]; //声明数组data,用于存储栈中数组 static int index; //声明变量index,用于表示栈中元素个数 //初始化栈 void init(){ index = 0; } //清理栈原创 2014-10-21 20:49:20 · 1117 阅读 · 0 评论 -
数据结构——单链表(C语言实现)
/* 单链表实现 */ #include #define SIZE 10 //定义链表节点 typedef struct node{ int data; //定义节点的数据域 struct node *p_next; //存储下一节点的存储位置 }node; static node head原创 2014-10-21 20:13:35 · 779 阅读 · 0 评论 -
数据结构——栈的动态实现(malloc/free)(C语言实现)
/************************************************************************* > File Name: stack.c > Author: Andy001847 > Mail: [email protected] > Created Time: 2014年10月21日 星期原创 2014-10-22 00:12:04 · 1261 阅读 · 0 评论 -
双向链表实现的消息队列
// include head file #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <vld.h> /* This head file could be omit, it used for check whether memory leak. You must be原创 2016-04-26 18:26:32 · 1159 阅读 · 0 评论 -
数据结构——双向链表(C语言实现)
/************************************************************************* > File Name: link_list.c > Author: Andy001847 > Mail: [email protected] > Created Time: 2014年10月25日 星期六 11时51分34秒 ******原创 2016-04-26 19:00:39 · 907 阅读 · 0 评论