最大的批发网站排名/推广文案范文100字
/* *建立一个模拟的交通网络(用有向网来表示),编程实现从某个城市*出发到另一个城市所需的最短的时间及路径。* *建立一个模拟的交通网络(用有向网来表示),编程实现从某个城市*出发到另一个城市所需的最短的时间及路径。* */ #define MAX_VERTEX_NUM 18
#define NULL 0
#define MAX_ARC_SIZE 100
#define MAX_ROUTE_NUM 5
#include"stdio.h"
#include"stdlib.h"
#include"string.h"
#define False 0
#define True 1
#define INFINITY 10000 /*预定义*/
typedef struct {
int number;
float expenditure;
int begintime[2];
int arrivetime[2];
}Vehide;
typedef struct {
Vehide stata[MAX_ROUTE_NUM];
int last;
}infolist;
typedef struct ArcNode {
int adjvex;
struct ArcNode *nextarc;
infolist info;
}ArcNode;
typedef struct VNode {
char cityname[10];
ArcNode *planefirstarc,*trainfirstarc;
}VNode,AdjList[MAX_VERTEX_NUM];
typedef struct {
AdjList vertices;
int vexnum,planearcnum,trainarcnum;
}ALGraph;
typedef struct Node {