void ifage(stu *L){
printf("请输入你要删除年龄为:");
int age;
scanf("%d",&age);
stu *prev=NULL;
stu *r=L;
while(r){
if(r->age==age){
if(prev==NULL){
L=L->next;
}
else{
prev->next=r->next;
}
r=r->next;
}
else{
prev=r;
r=r->next;
}
}
}
03-23
1312
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-19
07-19
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交