#include<iostream>
#include<string>
using namespace std;
int main()
{
int scores[3][3] = {
{100,100,100},
{90,50,100},
{60,70,80}
};
int sum_score[] = {0,0,0};
string names[] = { "张三","李四","王五" };
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 3; j++)
{
sum_score[i] = sum_score[i] + scores[i][j];
}
cout << names[i] << "的总分为:" << sum_score[i] << endl;
}
system("pause");
return 0;
}//第二维数组的长度永远不能省略