/* Note:Your choice is C IDE */
#include "stdio.h"
void main()
{
int i;
struct student{
char num[22];
char name[33];
char sex;
int age;
};
struct student stu[3];
for(i=0;i<3;i++)
{
scanf(%s%s%c%d",stu[i].num,stu[i].name,
&stu[i].sex,&stu[i].age);
}
}
相关分类