- 博客(5)
- 收藏
- 关注
原创 线性表-链表
#include #include typedef int ElemType; typedef struct node { ElemType data; struct node *next; }LNode, *LinkList; LinkList CreateLinkList1(); //头插法 LinkList CreateLinkList2(); //尾插法
2015-11-30 21:27:04 385
原创 顺序表(删除 、查找、插入、合并、输出)
#include #include #define MAXSIZE 100 typedef int ElemType; typedef struct { ElemType elem[MAXSIZE]; int length; }SeqList; void CreateSeqList(); //创建 void InsertSeqList(); //插入 voi
2015-11-25 00:02:13 678
原创 图/网-邻接矩阵-有/无 向网
#include #include #define MAXVEX 20 //最大顶点个数 #define INFINITY 32768 //表示极大值 typedef int Vextype; typedef struct { int arcs [MAXVEX][INFINITY]; //边/弧 信息 Vextype vex[MAXVEX]; //顶点信息 int vex
2015-11-23 13:12:36 999
原创 三元组顺序表-转置运算-三种算法
#include #include #define MAXSIZE 1000 typedef int ElementType; typedef struct { int row; int col; ElementType value; }Tripe; void TSMatrixInit(); void Print(); //按列序递增进行转置
2015-11-18 21:40:18 1565
原创 串(功能:插入、串匹配)——简单匹配算法
#include #include #define MAXSIZE 20 typedef struct { char str[MAXSIZE]; int len; }SString; SString *StrInit(); SString *StrInsert(); void Print(); void main () { int i; SStr
2015-11-17 23:10:40 396
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人