求求大家看看把,哪儿错了
#include<stdio.h>struct student
{
int number;
char name[20];
char sex;
int age;
char address;
int phone;
}
int main(void)
{
int len;
int i;
scanf("%d",&len);
printf("请输入班级人数:\n");
struct student stu[i];
for (i=1;i<len;i++)
scanf("%d %c %c %d %c %d",&stu_1[i].number,&stu_2[i].name[20],&stu_3[i].sex,&stu_4[i].age,&stu_5[i].address,&stu_6[i].phone);
printf("请输入班级学生信息:\n");
for (i=1;i<len;i++);
printf("%d %c %c %d %c %d",stu_1[i].number,stu_2[i].name[20],stu_3[i].sex,stu_4[i].age,stu_5[i].address,&stu_6[i].phone);
return(0);
}