建鏈表,結點包括:學號,姓名,年齡,性別。要求輸入3個人的信息,將他們按照年齡正序排序輸出他們的信息。

在這裏插入代碼片 #include<stdio.h> #include<stdlib.h> typedef struct node {char mingzi[10],xingbie; int nianling,xuehao; struct node *next;}node; node *create() {node *head,*p,*q; int b; p=(node*)malloc(siz
相關文章
相關標籤/搜索