C语言
文章平均质量分 74
PPP2
这个作者很懒,什么都没留下…
展开
-
数据结构-排序算法
#include #include #define MAXITEM 100typedef char KeyType[5];typedef int ElemType;typedef struct Rec{ KeyType key; /*关键字域*/ ElemType原创 2011-07-08 12:07:58 · 599 阅读 · 0 评论 -
数据结构-迷宫求解路径
#include#define MaxSize 100struct{ int i; int j; int di;}st[MaxSize];int mg[10][10]= { {1,1,1,1,1,1,1,1,1,1}, {1,0,0,1,0,0,0,1,0,1}, {1,0原创 2011-07-08 12:09:46 · 978 阅读 · 0 评论 -
数据结构-使用栈进行括号匹配算法
#include#includetypedef char ElemType;//栈的定义typedef struct linknode{ ElemType data; struct linknode * next;}LinkStack;void InitStack(LinkSta原创 2011-07-08 12:10:34 · 2815 阅读 · 0 评论 -
数据结构-迪克特斯拉算法(最短路径)
使用离散数学中关于迪克特斯拉算法例子 #include#include #define MAXV 100#define INF 32767 //INF表示∞typedef char InfoType;typedef struct { int no; InfoType info;}原创 2011-07-08 12:07:06 · 4918 阅读 · 0 评论 -
数据结构-二叉树操作
#include#include#define MaxSize 100typedef char ElemType;typedef struct node{ ElemType data; struct node * lchild; struct node * rchild;}BTN原创 2011-07-08 12:08:35 · 490 阅读 · 0 评论 -
数据结构-顺序表的操作
#include#include#define MaxSize 5typedef char ElemType;typedef struct{ ElemType data[MaxSize]; int length;}SqlList;void CreateList(SqlList *原创 2011-07-08 12:11:07 · 678 阅读 · 0 评论