#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语言程序设计教程(第三版)课后习题8.7 (C语言代码)浏览:645 |
C语言程序设计教程(第三版)课后习题10.3 (C语言代码)浏览:682 |
校门外的树 (C语言代码)浏览:1113 |
C语言程序设计教程(第三版)课后习题11.3 (C语言代码)浏览:1051 |
数组输出 (C语言代码)浏览:767 |
程序员的表白 (C语言代码)浏览:1317 |
【蟠桃记】 (C语言代码)浏览:647 |
C语言程序设计教程(第三版)课后习题10.7 (C语言代码)浏览:958 |
字符串问题 (C语言代码)浏览:1498 |
淘淘的名单 (C语言代码)答案错误???浏览:593 |