全国交通咨询模拟数据结构课程设计
5) 进入显示交通系统界面,根据用户选择则可显示城市、飞机航班、列车车次
等信息。或者返回上一级菜单。
六.附录——源程序
#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> #include<conio.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
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库全国交通咨询模拟数据结构课程设计(13)在线全文阅读。
相关推荐: