strcpy(per[j].age,per[j+1].age);Р strcpy(per[j].adds,per[j+1].adds);Р strcpy(per[j].email,per[j+1].email);Р per[j].score=per[j+1].score; Р?} Р?printf("\t\t\t已经成功删除!\n"); Р?return(n-1); Р} Рvoid Query_a_record(Person per[],int n) Р{ Р?Р?int m;Р?printf("\t\n请选择查询方式:\n");Р printf("\t┌──────┐\n");Р printf("\t│1------姓名│\n");Р printf("\t│2------电话│\n");Р printf("\t│3------地址│\n");Р printf("\t│4------返回│\n");Р printf("\t└──────┘\n");Р printf("请选择:");Р scanf("%d",&m);Р while(m!=1&&m!=2&&m!=3&&m!=4)Р { Р printf("输入错误,请重新选择:");Р scanf("%d",&m);Р?}Р?if(m==1)Р?{Р char s[20]; Р int i=0; Р printf("\t请输入想查询的姓名:"); Р scanf("\t%s",s); Р while(strcmp(per[i].name,s)!=0&&i<n) i++; Р if(i==n) Р {Р printf("\t通讯录中没有此人!\n"); Р return; Р } Р printf("\t此人学号: %d\n",per[i].score);Р printf("\t此人年龄: %s\n",per[i].age);