#include
#include
#include
#include
#define M 20
typedef struct node //学生信息表结构
{
int number;
char name[20];
struct score *mark;
struct node *next;
}lnode,*linklist;
typedef struct score //学生成绩表结构
{
char courses[20];
int semester;
int result;
struct score *next;
}scores,*pscore;
typedef struct binode //宿舍树结构
{
int data;
struct binode *lchild,*rchild;
struct node *head;
}bnode,*bitree;
linklist creat_stu() //输入学生信息
{
linklist t,head;
int x;
printf("please enter the student's number:");
scanf("%d",&x);
head=(linklist)malloc(sizeof(lnode));
t=head;
while(x>0)
{
t->next&