stu[10] 改成student[10]
max=sum 改成max=student[0].sum
是不是scanf("%d%s")这句,两个输入之间有空格,而这个空格会被算到字符串中,把一个输入语句拆分成两个,并在中间加一个getchar