#include
#include
#include
typedef char VertexType[4];
typedef char InfoPtr;
typedef int VRType;
#define MaxSize 50 //最大顶点个数
typedef enum{DG,DN,UG,UN}GraphKind;
//边结点的类型定义
typedef struct ArcNode{
in...
分类:
其他好文 时间:
2015-08-12 06:46:02
阅读次数:
233
//sequentiallist.h 顺序表模板类#ifndef SEQUENTIAL_LIST_HXX#define SEQUENTIAL_LIST_HXXusing std::cout;using std::endl;const int MaxSize=100; //顺序表数组最大值templa...
分类:
编程语言 时间:
2015-08-12 06:43:39
阅读次数:
143
//_DataStructure_C_Impl:CriticalPath
#include
#include
#include
#include"SeqStack.h"
//图的邻接表类型定义
typedef char VertexType[4];
typedef int InfoPtr; //定义为整型,为了存放权值
typedef int VRType;
#define MaxSize 50...
分类:
其他好文 时间:
2015-08-12 01:29:23
阅读次数:
205
(1)如何存储//如何存储 typedef struct { ElementType Data[MAXSIZE]; int Last; }List; List L, *PtrL; 访问下标为i的元素:L.Data[i] 或 PtrL->Data[i] 线性表的长度:L.Last+1 或者 PtrL-...
分类:
其他好文 时间:
2015-08-11 21:08:49
阅读次数:
103
#include
#include
#include
//图的邻接表类型定义
typedef char VertexType[4];
typedef char InfoPtr;
typedef int VRType;
#define INFINITY 10000 //定义一个无限大的值
#define MaxSize 50 //最大顶点个数
typedef enum{DG,DN,UG,UN}G...
分类:
其他好文 时间:
2015-08-11 07:23:38
阅读次数:
144
#include
#include
#include
typedef char VertexType[4];
typedef char InfoPtr;
typedef int VRType;
#define INFINITY 10000 //定义一个无限大的值
#define MaxSize 50 //最大顶点个数
typedef enum{DG,DN,UG,UN}GraphKind; /...
分类:
其他好文 时间:
2015-08-11 07:23:34
阅读次数:
179
//_DataStructure_C_Impl:邻接矩阵
#include
#include
#include
typedef char VertexType[4];
typedef char InfoPtr;
typedef int VRType;
#define INFINITY 10000 //定义一个无限大的值
#define MaxSize 50 //最大顶点个数
typedef e...
分类:
其他好文 时间:
2015-08-11 07:22:09
阅读次数:
139
#include
#include
#include
//图的邻接表类型定义
typedef char VertexType[4];
typedef char InfoPtr;
typedef int VRType;
#define INFINITY 10000 //定义一个无限大的值
#define MaxSize 50 //最大顶点个数
typedef enum{DG,DN,UG,UN}G...
分类:
其他好文 时间:
2015-08-11 07:20:48
阅读次数:
131
#include#include#include#include#include#includeusing namespace std;#define MAXN 9999//万进制#define MAXSIZE 10//用于cin输入时,大数长度为 MAXSIZE*4#define DLEN 4//...
分类:
其他好文 时间:
2015-08-10 17:55:37
阅读次数:
96
// _DataStructure_C_Impl:
#include
#include
#define MaxSize 100
typedef char DataType;
typedef struct Node{ //二叉链表存储结构类型定义
DataType data; //数据域
struct Node *lchild; //指向左孩子结点
struct Node *rchild...
分类:
其他好文 时间:
2015-08-10 00:23:02
阅读次数:
116