解题思路:
注意事项:
参考代码:
#include <bits/stdc++.h>
using namespace std;
int main() {
struct student {
string Xuehao;
string Name;
int score[3];
} student[1000];
int N;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> student[i].Xuehao >> student[i].Name >> student[i].score[0] >> student[i].score[1] >> student[i].score[2];
}
for (int i = 0; i < N; i++) {
cout << student[i].Xuehao << "," << student[i].Name << "," << student[i].score[0] << "," << student[i].score[1] << ","
<<
student[i].score[2] << endl;
}
return 0;
}
0.0分
0 人评分
矩阵乘法 (C++代码)浏览:1662 |
C语言程序设计教程(第三版)课后习题8.5 (C语言代码)浏览:562 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:467 |
1013题解浏览:596 |
简单的a+b (C语言代码)浏览:574 |
DNA (C语言代码)浏览:798 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:680 |
非常简单的算法,题解1049:C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:639 |
C二级辅导-统计字符 (C语言描述——用函数求解)浏览:1229 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:521 |