解题思路:
注意事项:
#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 人评分
printf基础练习2 (C语言代码)浏览:305 |
计算质因子 (C++代码)浏览:1655 |
P1001 (C语言代码)浏览:803 |
剪刀石头布 (C语言代码)浏览:1757 |
C语言程序设计教程(第三版)课后习题6.8 (C语言代码)浏览:529 |
C语言程序设计教程(第三版)课后习题1.6 (C语言代码)浏览:476 |
幸运数 (C++代码)浏览:2875 |
求圆的面积 (C++代码)浮点数有误差!!!浏览:695 |
删除数组中的0元素 (C语言代码)浏览:2047 |
简单的a+b (C语言代码)浏览:612 |