
数据结构
小驰驰呕吼**
热爱计算机的小可爱一枚
展开
-
C语言位运算的基本用法
转载网址:https://www.cnblogs.com/sylar5/p/10613438.html原创 2020-03-17 18:46:15 · 168 阅读 · 0 评论 -
字符串
字符串1.串的顺序存储# include <iostream>using namespace std;typedef struct{ char *ch; int length;}HString;void Init(HString &s){ s.ch = new char[100]; if(!s.ch) cout&l...原创 2019-09-27 19:23:40 · 118 阅读 · 0 评论 -
队列的基本操作
队列的基本操作顺序队列# include <iostream>using namespace std;# define MAXSIZE 100typedef struct{ int *base; int front; int rear;}SqQueue;int InitQueue(SqQueue &s)//初始化队列{ s.ba...原创 2019-09-25 20:58:12 · 111 阅读 · 0 评论 -
线性表的应用
线性表的应用一:两个线性表取并集1:用顺序表实现:# include <iostream>using namespace std;# define MAXSIZE 100typedef struct{ int *elem; int length;}SqList;int InitList(SqList &s){ s.elem = new...原创 2019-09-18 20:49:23 · 724 阅读 · 0 评论 -
双向链表的基本操作
双向链表的基本操作# include <iostream>using namespace std;typedef struct DulNode{ int data; struct DulNode *next; struct DulNode *prior;}DulNode,*DuLinkList;int InitList(DuLinkList &...原创 2019-09-10 18:51:02 · 208 阅读 · 0 评论 -
单链表的基本操作
单链表的基本操作# include <iostream>using namespace std;typedef struct LNode{ int data; struct LNode*next;}LNode,*LinkList;int InitList(LinkList &l)//初始化单链表{ l = new LNode; l-&...原创 2019-09-07 16:36:47 · 134 阅读 · 0 评论 -
线性表的基本使用
线性表的基本使用# include <iostream>using namespace std;# define MAX 100typedef struct { int *elem; int length;}SqList;int InitList(SqList &l)//建立一个新的线性表{ l.elem = new int[100]; ...原创 2019-09-05 19:36:40 · 1164 阅读 · 2 评论