{
fflush(stdin);
gets(select);
if(strlen(select)==1)
{
if(strcmp(select,"1")==0||strcmp(select,"2")==0||strcmp(sele
ct,"3")==0||strcmp(select,"4")==0||strcmp(select,"5")==0)
{
return select[0];
}
}
printf("输入有误!\n");
}while(1);
}
void create(Link head)
{
int i=0;
Link q=head;
while(i<5)
{
Link p=(Link)malloc(sizeof(Node));
p->data=(i+1)*10;
p->next=NULL;
q->next=p;
q=p;
i++;
}
}
void show(Link head)
{
Link p=head->next;
while(p!=NULL)
{
printf("%d\t",p->data);
p=p->next;
}
printf("\n");
}
int find(Link head,int num)
{
int i=1;
Link p=head->next;
while(p!=NULL)