主观

#include#includetypedef struct student{ int hum; char nameE20]; char sex; mt age; }LIST; LIST*create((1)) { LIST*head=NULL,*newNode,*tail; int i=0: for(i=0;i(2); printf(“\nlnput the information of student%d(name,hum,sex,age):”,i+1); scanf(“%s%d%e%d”,%newNode->name,&newNode->num,&newNode->sex,&newNode->age); newNode->next=NULL: if(i==0)(3); else tail->next=newNode: tail=newNode; }(4): } void OutputList(LIST*head) {LIST*p=head; while(p!=NULL){ printf(“kn%d%s%c%d”,p->num,p->name,p->sex,p->age;(5); } } void main() { LIST*L: L=create(10): outputList(L); }

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服