void Modify(Link l) { Node *p; char findmess[20]; if(!l->next) { printf("\nNo message!\n"); return; } printf("Input student's number:"); scanf("%s",findmess); p=Locate(l,findmess,"num"); if(p) { printf("Input the new student's number(the old one is%s):",p->data.num); scanf("%s",p->data.num); printf("Input the new student's name(the old one is%s):",p->data.name); scanf("%s",p->data.name);getchar(); printf("Input the new student's sex(the old one is%s):",p->data.sex); scanf("%s",p->data.sex); printf("Input the new student's C(the old one is%d):",p->data.c); scanf("%d",&p->data.c);getchar(); printf("Input the new student's maths(the old one is%d)::",p->data.m); scanf("%d",&p->data.m);getchar(); printf("Input the new student's English(the old one is%d):",p->data.e); scanf("%d",&p->data.e); p->data.total=p->data.e+p->data.c+p->data.m; p->data.ave=p->data.total/3; printf("\nOK!\n"); shoudsave=1; } else Nofind(); system("pause"); }