f("\t\t\t\t请输入您的选择:");scanf("%c",&c);if(c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='e')flag=0;}while(flag);returnc;}charSearchMenu()//查询子菜单{charc;intflag;do{flag=1;system("cls");pingmu();introduce();printf("\n\t\t\n");printf("\t\t\n");printf("\t\t1、按照景点编号查询\n");printf("\t\t2、按照景点名称查询\n");printf("\t\te、返回\n");printf("\t\t\n");printf("\t\t\n");printf("\t\t\t请输入您的选择:");scanf("%c",&c);if(c=='1'||c=='2'||c=='e')flag=0;}while(flag);returnc;}voidsearch()//查询景点信息{intnum;inti;charc;charname[20];do{system("cls");c=SearchMenu();switch(c){case'1':system("cls");introduce();pingmu();printf("\n\n\t\t请输入您要查找的景点编号:");scanf("%d",&num);for(i=0;i<NUM;i++){if(num==G.vex[i].number){printf("\n\n\t\t\t您要查找景点信息如下:");printf("\n\n\t\t\t%-25s\n\n",G.vex[i].description);printf("\n\t\t\t按任回车返回...");getchar();getchar();