帮忙看下简单的输入输出程序?
void input(classes s[]){
int i,j;
cout<<"please input:"<<endl;
for(i=1;i<=n;i++)
{
cin>>s[i].info.num>>s[i].info.name;
for(j=1;j<=3;j++)
cin>>s[i].info.score[j];
}
}
void output(classes s[])
{
int i;
for(i=1;i<=n;i++)
cout<<s[i].info.num<<" "<<s[i].info.name<<" "<<s[i].info.score[1]<<" "<<s[i].info.score[2]<<" "<<
s[i].info.score[3]<<" "<<endl;
}为何最后一个name输不出来