回复 8楼 marlow
LINK *input(LINK *head) //输入 {
STUDENT b;
char ch='y';
while(ch=='y'||ch=='Y')
{
fflush(stdin);
printf("输入姓名\n");
gets(b.name) ;
printf("输入学号\n");
gets(b.studentID);
printf("输入地址\n");
gets(b.address);
printf("输入出生年月日\n");
scanf("%d%d%d",&b.birthday.year,&b.birthday.month,&b.birthday.day);
printf("输入Chinese,math,C,english成绩\n");
fflush(stdin);
scanf("%d%d%d%d",&b.Score.chinese,&b.Score.math,&b.Score.C,&b.Score.english);
head=AppendNode(head,&b);
printf("\n 继续输入学生信息?(y/n)");
ch=getch();
printf("\n");
但是我这里,可以输入地址,但我输出不了~~~printf("%s",b.address);为啥