#include<stdio.h>
#include<malloc.h>
#define LEN sizeof(struct LNode)
struct LNode
{
int data;
struct LNode *next;
};
struct LNode *creat()
{struct LNode *head,*p1,*p2;
p1=p2=(struct LNode * )malloc(LEN);
int n=0;
printf("请依次从小到大输入链表中的数据,输入0结束:\n");
scanf("%d",&p1->data);
head=NULL;
while(p1->data!=0)
{n++;
if(n==1)head=p1;
else p2->next=p1;
p2=p1;
p1=(struct LNode *)malloc(LEN);
scanf("%d",&p1->data);
}
p2->next=NULL;
return(head);
}
void print(struct LNode *head)
{
struct LNode *p;
printf("删除后的链表为:\n");
p=head;
if(head!=NULL)
{<