文档详情

数据结构课程设计校园导游咨询.doc

发布:2017-03-20约8.45千字共6页下载文档
文本预览下载声明
9、校园导游咨询  要求: #include stdio.h #define MAXV 100 //最大顶点个数 #define INF 32767 //用32767表示∞ #include stdlib.h //调用函数system改变字体颜色的头文件 typedef int InfoType; #define MAXV 100 //最大顶点个数 //以下定义邻接矩阵类型 typedef struct { int no; //顶点编号 InfoType info; //顶点其他信息 } VertexType; //顶点类型 typedef struct //图的定义 { int edges[MAXV][MAXV]; //邻接矩阵 int vexnum,arcnum; //顶点数,弧数 VertexType vexs[MAXV]; //存放顶点信息 } MGraph; void ecjtumap()//建立华东交通大学地图 { printf(\t|-------------------------------------------------------------|\n); printf(\t| |\n); printf(\t| |\n); printf(\t| ---------- |\n); printf(\t| ==============================| 国防生宿舍| |\n); printf(\t| 。 ---------- |\n); printf(\t| 。 。 。 |\n); printf(\t| 。 。 。 |\n); printf(\t| 。 。 。 |\n); printf(\t| 。 。 。 |\n); printf(\t| 。 。 。 |\n); printf(\t| |南区四食堂| ---------- |\n); printf(\t| 。 。 |南区礼堂 | |\n); printf(\t| 。 。 ---------- |\n); printf(\t| 。 。 。 |\n); printf(\t| 。 。 。 |\n); printf(\t| 。 -------- 。 |\n); printf(\t| ================| 校训牌|。。。。。。。 |\n); printf(\t| = -------- |\n); printf(\t| = 。 |\n
显示全部
相似文档