#include <iostream>
using namespace std;
struct student{
string number;
string name;
float score[3];
};
int main ()
{
int n;
cin>>n;
student *p=new student [n];
for(int i=0;i<n;i++){
cin>>(*(p+i)).number;
cin>>(*(p+i)).name;
for(int j=0;j<3;j++)
cin>>(*(p+i)).score[j];
}
for(int i=0;i<n;i++){
cout<<(*(p+i)).number<<',';
cout<<(*(p+i)).name<<',';
for(int j=0;j<3;j++){
cout<<(*(p+i)).score[j];
if(j<2) cout<<',';
}
cout<<endl;
}
return 0;
}
0.0分
5 人评分
字符串的输入输出处理 (C语言代码)浏览:715 |
WU-陶陶摘苹果2 (C++代码)浏览:929 |
【金明的预算方案】 (C++代码)浏览:870 |
C语言程序设计教程(第三版)课后习题10.3 (C语言代码)浏览:494 |
C语言程序设计教程(第三版)课后习题8.5 (C语言代码)浏览:542 |
愚蠢的摄影师 (C++代码)浏览:836 |
简单的a+b (C语言代码)浏览:508 |
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:593 |
C二级辅导-温度转换 (C语言代码)浏览:694 |
C二级辅导-计负均正 (C语言代码)浏览:472 |