解题思路:
注意事项:
#include<stdio.h> struct inf { char num[15]; char name[15]; int a; int b; int c; }; int main() { struct inf std[100]; int i,n; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s %s %d %d %d",std[i].num,std[i].name,&std[i].a,&std[i].b,&std[i].c); } for(i=0;i<n;i++){ printf("%s,%s,%d,%d,%d\n",std[i].num,std[i].name,std[i].a,std[i].b,std[i].c); } return 0; }
0.0分
0 人评分
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:756 |
简洁的代码浏览:1408 |
C语言训练-自守数问题 (C语言代码) long long浏览:1061 |
K-进制数 (C++代码)浏览:851 |
大神老白 (C语言代码)浏览:713 |
C语言训练-求素数问题 (C语言代码)浏览:1451 |
用筛法求之N内的素数。 (C语言代码)浏览:803 |
C语言程序设计教程(第三版)课后习题9.6 (C语言代码)浏览:576 |
C二级辅导-计负均正 (C语言代码)浏览:480 |
Tom数 (C语言代码)浏览:552 |