LinkList CreatListR1(void)
{
char ch[100];
LinkList head, p;//head为头结点,p为首元结点
head=(LinkList)malloc(sizeof(ListNode));
head->next=NULL;
LinkList temp=head;
printf("输入字符串个数:");
int n;
scanf("%d",&n);
printf("输入字符串 n");
for(int i=0;inext!=NULL) temp=temp->next;
p=(LinkList)malloc(sizeof(ListNode));
strcpy(p->data,ch);
p->next=NULL;
temp->next=p;
}
}
return head;
}



