main.c

来自「这是我的老师布置的一道图的应用的题目」· C语言 代码 · 共 23 行

C
23
字号
 #include<stdio.h>
 #include<stdlib.h>
 #include<string.h>
 #define MAX_NAME 15 
 typedef int InfoType;
 typedef char VertexType[MAX_NAME];
 #include"Graph.h"
 #include"Graph.c"

 void print(char *i)
 {
   printf("%s ",i);
 }

 void main()
 {
   ALGraph g;
   CreateGraph(&g);
   Display(g);
   DFSTraverse(g,print);
   BFSTraverse(g,print);
 }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?