#include<iostream>
#include<string>
#include<stdlib.h>
using namespace std;
class Score{
public:
Score()
{
renshu=2;
}
Score(int renshu1)
{
renshu=renshu1;
}
void InputCoord()
{
for(int i=0;i<renshu;i++)
{cout<<"请输入姓名:"<<endl;
cin>>name[i];
cout<<"请输入科目一成绩"<<endl;
cin>>score[i][1];
cout<<"请输入科目二成绩"<<endl;
cin>>score[i][2];
cout<<"请输入科目三成绩"<<endl;
cin>>score[i][3];
}
}
void sum()
{ float sum;
for(int i=0;i<renshu;i++)
{
sum=score[i][1]+ score[i][2] + score[i]
输入学生成绩,计算总成绩,个人平均成绩和单科平均成绩
最新推荐文章于 2023-11-29 20:58:30 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)