case '3': system(\ .\\n\ getchar(); getchar(); break; };
}while(ck!='e'); }
char Menu() { char c; int flag; do{ flag=1; system(\ narrate();
printf(\┏━━━━━━━━━━━━━━━┑\\n\ printf(\┃ ┃\\n\ printf(\┃ 1、查询景点路径 ┃\\n\ printf(\┃ 2、查询景点信息 ┃\\n\ printf(\┃ 3、推荐参观路线 ┃\\n\ printf(\┃ t、退出 ┃\\n\ printf(\┃ ┃\\n\ printf(\┗━━━━━━━━━━━━━━━┛\\n\
printf(\请输入您的选择:\ scanf(\
if(c=='1'||c=='2'||c=='3'||c=='t') flag=0; }while(flag); return c; }
char SearchMenu() { char c; int flag; do{ flag=1; system(\ narrate();
printf(\┏━━━━━━━━━━━━━━━┑\\n\ printf(\┃ ┃\\n\ printf(\┃ 1、按照景点编号查询 ┃\\n\ printf(\┃ 2、按照景点名称查询 ┃\\n\ printf(\┃ t、返回 ┃\\n\ printf(\┃ ┃\\n\ printf(\┗━━━━━━━━━━━━━━━┛\\n\ printf(\请输入您的选择:\ scanf(\ if(c=='1'||c=='2'||c=='t') flag=0;
}while(flag); return c; }
void search() { int num; int i; char c; char name[20]; do {
system(\ c=SearchMenu(); switch (c) { case '1': system(\ narrate();
printf(\请输入您要查找的景点编号:\ scanf(\ for(i=0;i if(num==[i].number) { printf(\您要查找景点信息如下:\ printf(\ printf(\按任意键返回...\ getchar(); getchar(); break; } } if(i==NUM) { printf(\没有找到!\ printf(\按任意键返回...\ getchar(); getchar(); } break; case '2': narrate(); system(\ printf(\请输入您要查找的景点名称:\ scanf(\ for(i=0;i if(!strcmp(name,[i].sight)) { printf(\您要查找景点信息如下:\ printf(\ printf(\按任意键返回...\ getchar(); getchar(); break; } } if(i==NUM) { printf(\没有找到!\ printf(\按任意键返回...\ getchar(); getchar(); } break; } }while(c!='t'); } void CreateUDN(int v,int a) { int i,j; =v; =a; for(i=0;i<;++i) [i].number=i; [0].sight=\东大门\ [0].description=\学校正门。\ [1].sight=\气象楼\