- 106
- 0
- 约1.78万字
- 约 20页
- 2018-05-16 发布于河南
- 举报
全国交通咨询系统C代码
//全国交通咨询系统-代码部分
//作者:JUNE 2011-6-11
#include iostream
#include stdio.h
#include windows.h
#include string.h
#define Dij_MAXN 33
#define MAX_VERTEX_NUM 31
#define MAX_STRING_NUM 10
#define MAX_TRAFFIC_NUM 10
using namespace std;
typedef short int CityType; //定义城市节点
typedef struct TrafficNode /////////////////////////////////////////////////
{
char name[MAX_STRING_NUM]; //班次
//int StartTime,StopTime; //起止时间
int Time;
int EndCity; //火车到达城市的编号
int Cost; //票价
} TrafficNodeDat;
typedef struct VNode //////////////////////////////////////////////////////
{
CityType city; //城市编号
int TrainNum,FlightNum
原创力文档

文档评论(0)