shiyan.h
#pragma once
#include
sj.ccp
#include “iostream”
using namespace std;
class score {
public:
score()
{
times = 2;
}
score(int times1)
{
times = times1;
}
~score()
{
}
void inputsco()
{
for (int i = 0; i < times; i++)
{
cout << "输入姓名:" << endl;
cin >> name[i];
cout << "输入学科A成绩:" << endl;
cin >> sco[i][1];
cout << "输入学科B成绩:" << endl;
cin >> sco[i][2];
cout << "输入学科C成绩:" << endl;
cin >> sco[i][3];
}
}
void showsco()
{
cout << "成绩:" << endl;
for (int i = 0; i < times; i++)
{
cout <<"姓名:"<<name[i]<< endl;
cout << "学科A成绩:" << sco[i][1] << ",学科B成绩:" << sco[i][2] << ",学科C成绩&#