作者:农民工小耿 | 来源:互联网 | 2023-05-24 18:41
1> clcto..:
你没有.要么将它们命名为不同的名称,要么使用a struct
来保存相关数据:
string student_name[2] = {};
double student_score[2] = {0};
// or
struct student
{
student() : name(""), score(0) {}
string name;
double score;
};
student students[2];