C/C++
文章平均质量分 65
minmin很潇洒
这个作者很懒,什么都没留下…
展开
-
c/c++实现顺序表和单链表
实现基于C/C++的数据结构的顺序表,单链表等,此程序未经过严格实验,只是提供大概思路,供大家参考指正原创 2017-03-18 21:08:40 · 605 阅读 · 0 评论 -
c/c++实现双向链表
实现基于C/C++的数据结构的双向链表,此程序未经过严格实验,只是提供大概思路 #include #include typedef int DataType; typedef struct node { DataType data; struct node *prior,*next; }DNode,*DLinkList; DLinkList create_D原创 2017-03-19 10:02:47 · 479 阅读 · 0 评论 -
c/c++实现顺序栈和链栈
实现基于C/C++的数据结构的顺序栈,此程序未经过严格实验,只是提供大概思路 #include #include #define MAXSIZE 100 typedef int DataType; typedef struct { DataType data[MAXSIZE]; int top; }SeqStack,*PSeqStack; PSeqStack原创 2017-03-19 11:32:00 · 428 阅读 · 0 评论 -
c/c++实现顺序循环队列和链式队列
实现基于C/C++的数据结构的顺序循环队列,此程序未经过严格实验,只是提供大概思路 #include #include #define MAXSIZE 10 typedef int DataType; typedef struct { DataType data[MAXSIZE]; int front,rear; }SeqQueue,*PSeqQueue; P原创 2017-03-19 18:04:31 · 1289 阅读 · 0 评论 -
c/c++实现字符串模式匹配BM算法和KMP算法
BM算法核心思想是一一比较,失败就回溯。 #include int StrIndex_BF(char *s,char *t)//the length of the string is put in the o position { int i=1,j=1; while(i { if(s[i]==t[j]) { i++; j++; } else { i=i-j+2原创 2017-03-20 21:05:28 · 936 阅读 · 0 评论 -
c/c++实现广义表及其深度查找
c/c++实现广义表及其深度查找,深度查找使用递归即可。 #inlcude int dep=0; typedef struct GeneralNode{ int tag; union{ Datatype data; struct{ struct GeneralNode *hp,*tp; }ptr; }; }*GList; GList GetHea原创 2017-03-21 09:42:01 · 1123 阅读 · 0 评论 -
c/c++实现二叉树前序,中序和后序的递归和非递归遍历
c/c++实现实现二叉树前序,中序和后序的递归和非递归遍历 #include #include #include//import self-defined stack typedef char DataType; typedef struct bnode{ DataType data; struct bonde *lchild,*rchild; }Bnode,*原创 2017-03-21 16:29:03 · 540 阅读 · 0 评论 -
c/c++实现线索二叉树及其中序遍历和查找
c/c++实现线索二叉树及其中序遍历和查找 #include #include typedef char DataType; typedef struct { int ltag,rtag; DataType data; struct node *lchild,*rchild; }ThreadNode,*ThreadTree; //inorder thr原创 2017-03-21 20:34:14 · 1388 阅读 · 0 评论
分享