建链表,结点包括:学号,姓名,年龄,性别。要求输入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
相关文章
相关标签/搜索