#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 人评分
C二级辅导-进制转换 (C语言代码)浏览:637 |
蓝桥杯历届试题-九宫重排 (C++代码)浏览:2794 |
C语言程序设计教程(第三版)课后习题6.4 (C语言代码)浏览:563 |
C语言程序设计教程(第三版)课后习题10.7 (C语言代码)浏览:983 |
C语言程序设计教程(第三版)课后习题5.8 (C语言代码)浏览:588 |
用筛法求之N内的素数。 (C语言代码)浏览:1314 |
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)浏览:1203 |
【明明的随机数】 (C语言代码)浏览:820 |
完数 (C语言代码)浏览:727 |
第三届阿里中间件性能挑战赛-总决赛亚军比赛攻略浏览:1159 |