#include<stdio.h>
struct student
{
char num[50];
char name[50];
int s1;
int s2;
int s3;
};
void input(struct student *p)
{
scanf("%s %s %d %d %d",p->num,p->name,&p->s1, &p->s2, &p->s3);
}
void output(struct student *p)
{
printf("%s,%s,%d,%d,%d\n", p->num, p->name,p->s1, p->s2,p->s3);
}
int main()
{
struct student s[100], *p;
int n;
scanf("%d", &n);
for (p=s; p < s+n; p++)
input(p);
for (p = s; p < s + n; p++)
output(p);
system("pause");
return 0;
}
0.0分
0 人评分