typedef?struct?student{
int?age;
float?height;
}?stu;
int?main(){
stu?a[2];
for?(int?i=0;?i<2;?i++)?{
scanf("%d%f",&a[i].age,&a[i].height);
}
printf("Amy?is?:%dyears?old?%.fcm\n",a[0].age,a[0].height);
printf("Shelon?is:%dyears?old?%.fcm\n",a[1].age,a[1].height);
return?0;
}
依次輸出Amy和Shelon的年齡體重,妳的源代碼錯的有點離譜.....