int list_update_value(Linklist L,datatype old_e,datatype new_e)
{
if(L==NULL||list_empty(L)||pos<1||pos>L->len)
{
printf("查找失败");
return -1;
}
Linklist q=L->next;
while(q!=NULL&&q->data!=old_e)
{
q=q->next;
}
if(q==NULL)
{
printf("未查找到");
}
else{
q->data=new_e;
}
}