rintf("\t\t\t------------------------------\n");?}?else?printf("\t\t\t系统中无任何记录\n");?printf("\t\t\t按任意键返回主菜单:\n");?getch();?return;}intsearchbyname(){?intmark=0;?inti;?printf("\t\t\t----------按药品名称查找----------\n");?charname[20];?printf("\t\t\t请输入药品名称:\n");?scanf("%s",name);?for(i=0;i<num;i++)?{ if(strcmp(medicine[i].name,name)==0) { printf("\t\t\t-------以下是您查找的药品信息-------\n"); printf("\t\t\t药品名称:%s",medicine[i].name); printf("\t\t\t药品编号:%s",medicine[i].number); printf("\t\t\t单价:%s",medicine[i].price);printf("\n\t\t品牌:%s",medicine[i].brand); printf("\t\t\t库存数量:%s\n",medicine[i].inventory);printf("\t\t\t------------------------------------------------------\n"); mark++; if((i+1)<num) { printf("\t\t\t是否继续查找相同名称的药品信息:(y/n)\n"); if(getch()=='y'||getch()=='Y') { continue; } else return(0); } else