程序:
#include<iostream>
using namespace std;
class stuscore {
public:
stuscore()
{
times = 2;
cout << "coordinate construction1 called!" << endl;
}
stuscore(int times1)
{
times = times1;
}
~stuscore()
{
cout << "coordinate destruction called!" << endl;
}
void inputscore()
{
for (int i = 0; i < times; i++)
{
cout << "请输入学生序号:" << endl;
cin >> name[i];
cout << "请输入科目A成绩:" << endl;
cin >> score[i][0];
cout << "请输入科目B成绩:" << endl;
cin >> score[i][1];
cout << "请输入科目C成绩:" << endl;
cin >> score[i][2];
}
}
void showscore()
{
cout << "学号:" <&