#include
#include
using namespace std;
class Score {
public:
Score()
{
times = 2;
}
Score(int times1)
{
times = times1;
}-
~Score()
{
}
void InputScore()
{
cout <<times << endl;
for (int i=0; i<times; i++)
{
cout << “请输入学生姓名:” << endl;
cin >> Name[i];
cout << “请输入科目A成绩:” << endl;
cin >> ScoreData[i][1];
cout << “请输入科目B成绩:” << endl;
cin >> ScoreData[i][2];
cout << “请输入科目C成绩:” << endl;
cin >> ScoreData[i][3];
}
}
void ShowScore()
{
for (int i = 0; i < times; i++)
{
cout << “姓名:” << Name[i] << " 成绩A:" << ScoreData[i][1] << " 成绩B:"
C++3-2实验
最新推荐文章于 2023-01-10 09:27:40 发布