数据结构
文章平均质量分 78
小白晒太阳
腼腆
展开
-
图的相关操作(数据结构)
#include #include #include #define MAX_VERTEX_NUM 20 typedef struct ArcNode{ int adjvex; //该弧所指向的顶点的位置 struct ArcNode *nextarc; //指向下一条弧的指针 }ArcNode; typedef int VertexType; typedef struct原创 2012-11-14 14:46:11 · 959 阅读 · 0 评论 -
树的相关操作(数据结构)
#include #include #include #define STACK_INIT_SIZE 100 #define STACKINCREMENT 10 #define ERROR 0 #define OK 1 #define OVERFLOW -1 typedef struct BiTNode{ //二叉树二叉链表存储表示 char data; struct BiTNode原创 2012-11-01 15:42:09 · 829 阅读 · 0 评论 -
数据结构基本操作(复制而来)
C语言实现顺序表的基本操作 Sqlist1.h #include #include #include #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define OVERFLOW 0 #define LIST_INIT_SIZE 10//线性表存储空间的初始分配量 #d转载 2012-09-09 21:51:14 · 1667 阅读 · 0 评论 -
顺序表的简单操作(数据结构)
#include #include #define LIST_INIT_SIZE 100 #define LISTINCREMENT 10 #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int Elemtype; typedef struct{//定义一个顺序表的存储原创 2012-09-21 22:57:22 · 875 阅读 · 0 评论 -
栈的简单基本操作(数据结构)
#include #include #define STACK_INIT_SIZE 100 #define STACKINCREMENT 10 #define ERROR 0 #define OK 1 #define OVERFLOW -1 typedef char SElemType; typedef struct{ SElemType *base; SElemType *top; i原创 2012-11-01 15:36:46 · 698 阅读 · 0 评论