?? addvex.cpp
字號:
#include"traffic.h"
step Addvex(ALGraph &G)
{
CityName add;
openfile("head");
if(G.vexnum == MAX_VERTEX_NUM)
{
printf("Full !!\n");
return NEXTSTEP;
}
printf("Please input the station name:\n");
scanf("%s",add);
getchar();
if(LocateVex(G,add) != -1)
{
printf("The station is exist!!");
}
else
{
strcpy(G.vertices[G.vexnum].data,add);
G.vertices[G.vexnum].firstarc = NULL;
G.vexnum ++;
printf("%s station add success!!\n",add);
}
return NEXTSTEP;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -