
数据结构
文章平均质量分 61
_Nil_
Time tells no lies!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
队列的 增、删、查
个人认为普通队列的情况,我们必须把握头指针、尾指针、和头结点之间的关系,以及队列的特性, 我们就可以很好的理解队列的各种草走的流程了!至于代码,没有必须强求自己记下来,能知道哪些 问题应该来用队列来解决就可以了!参考代码http://wenku.baidu.com/view/1b1da2106c175f0e7cd13794(自己加了些注释) 自己利用画图工具来画的,美观不行!! 首先我们来原创 2013-08-10 15:27:37 · 1144 阅读 · 0 评论 -
利用栈实现进制的转换
其实平时处理进制转换的处理方式更方便,最后只需处理一下倒序输入就可以了! 然而为了体现栈“后进先出” 的思想,利用栈来处理最后结果的倒序输出囧。 #include #include #include #define ERROR 0 #define OK 1 #define OVERFLOW -1 #define STACK_INIT_SIZE 100//栈的大小原创 2013-08-10 10:16:04 · 1437 阅读 · 0 评论 -
单链表的查找、删除、插入!
#include #include #include #include using namespace std; typedef int Status; typedef struct LNode { int data; struct LNode * next; }LNode, *LinkList; LinkList p; LinkList原创 2012-07-20 11:25:45 · 923 阅读 · 0 评论 -
二叉树遍历
#include #include typedef char Elem; typedef struct Node { Elem data; struct Node *pLchild; struct Node *pRchild; }BTreeNode, *BTree; BTree CreateBTree(BTree T)//创建二叉树原创 2012-08-13 11:13:55 · 715 阅读 · 0 评论 -
循环队列
#include #include #include #define MAXSIZE 10; #define OK 1; #define ERROR 0; #define OVERFLOW 0; typedef struct { int *data; int front ; int rear; }SqQueue; int InitQueue_Sq(SqQueue &Q) {原创 2013-08-10 16:36:24 · 1121 阅读 · 1 评论