我帮你改的可以看看
#include "stdio.h"
#define N 2
int i;
struct student{
char name[15];
float middle,final;
}a[N];
int main()
{
for(i=0;i<N;i++)
scanf("%s%f%f%f",&a[i].name,&a[i].middle,&a[i].final);
for(i=0;i<N;i++)
printf("%s%f%f%f\n",a[i].name,a[i].middle,a[i].final);
}