parent
ea31abf31a
commit
6da51cae0c
@ -0,0 +1,6 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"stdlib.h": "c",
|
||||
"string.h": "c"
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
{
|
||||
"tasks": [
|
||||
{
|
||||
"type": "cppbuild",
|
||||
"label": "C/C++: g++.exe build active file",
|
||||
"command": "C:\\mingw64\\bin\\g++.exe",
|
||||
"args": [
|
||||
"-fdiagnostics-color=always",
|
||||
"-g",
|
||||
"${file}",
|
||||
"-o",
|
||||
"${fileDirname}\\${fileBasenameNoExtension}.exe"
|
||||
],
|
||||
"options": {
|
||||
"cwd": "${fileDirname}"
|
||||
},
|
||||
"problemMatcher": [
|
||||
"$gcc"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"detail": "Task generated by Debugger."
|
||||
}
|
||||
],
|
||||
"version": "2.0.0"
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
#include <stdio.h>
|
||||
#define NO 30
|
||||
#define MAXV 100 //最大顶点个数
|
||||
#define INF 32767 //INF表示∞
|
||||
typedef struct
|
||||
{
|
||||
int length;//边的长度,既两个地点之的长
|
||||
int money;
|
||||
}ArcCell; //定义边的类型
|
||||
|
||||
typedef struct
|
||||
{ int no; //顶点的编号
|
||||
char sight[10]; //地点
|
||||
char introduction[100]; //地点的介绍
|
||||
}VertexType; //定义顶点的类型
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int vexnum; //顶点数
|
||||
int arcnum; //边数
|
||||
VertexType vexs[NO]; //在图结构体中调用点的结构体
|
||||
ArcCell arc[NO][NO]; //在图结构体中调用边的结构体
|
||||
}MatGrath;
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in new issue