#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 人评分

  评论区

然而
2017-08-05 09:28:17
大赞!!!
2017-08-05 08:33:27
  • «
  • 1
  • »