izeof(LNode));LinkListp,s;s=head;charflag='y';head->next=NULL;while((flag=='Y')||(flag=='y')){p=(LinkList)malloc(sizeof(LNode));if(!p)exit(-1);printf("请输入数据(学号姓名性别(0或1)联系电话QQ号):\n");scanf("%s%s%d%s%s",p->data.xuehao,p->data.name,&p->data.sex,p->data.tel,p->data.qq);p->next=s->next;s->next=p;s=p;getchar();printf("继续输入吗?(y/n):");scanf("%c",&flag); printf("\n");}returnhead;}voidPrintList(LinkListhead){LNode*p;p=head->next;printf("学号姓名性别联系电话QQ号\n");printf("------------------------------------------------------------\n");while(p!=NULL){printf("%-14s%-14s",p->data.xuehao,p->data.name);if(p->data.sex)printf("男");elseprintf("女");printf("%-14s%-10s\n",p->data.tel,p->data.qq);printf("----------------------------------------------------------\n");p=p->next;}}/*intmain(){LinkListhead;head=CreatList();