#include
#define N 10
struct student{
char num[6];
char name[8];
int score[4];
};
void input(struct student stu[],int n)
{
int i,j;
for(i=0;i<n;i++)
{
scanf("%s",stu[i].num);
scanf("%s",stu[i].name);
for(j=0;j<4;j++)
{
scanf("%d",&stu[i].score[j]);
}
}
}
void print(struct student stu[],int n)
{
int i,j;
for(i=0;i<n;i++)
{
printf("%s ",stu[i].num);
printf("%s ",stu[i].name);
for(j=0;j<4;j++)
{
printf("%d ",stu[i].score[j]);
}
}
printf("\n");
}
void main()
{
int n,i;
struct student stu[N];
printf("input the number of the studentds:");
scanf("%d",&n);
printf("input student num:\n");
printf("input student name:\n");
printf("input student four score:\n");
printf("=================================================\n");
input(stu,n);
printf("\ninput 1(output result) or 2(exist):\n");
scanf("%d",&i);
if(i==1)
{
print(stu,n);
}
if(i==2)
{
printf("Exist!\n");
}
printf("\n");
}