把问题补充完整再问吧
class Student
{
int SNO;
string name;
int math;
int english;
int computer;
}
#include
#include
using namespace std;
class student
{
private:
string sno;
string sname;
double math;
double computer;
double avg;
double eng;
public:
student(string a,string b,double d,double e,double f);
student();
~student();
void setavg();
void show();
};
student::student(string a,string b,double d,double e,double f)
{
sno=a;
sname=b;
math=d;
computer=e;
eng=f;
}
student::student(){}
student::~student(){}
void student::setavg()
{ avg=(math+computer+eng)/3;}
void student::show ()
{ cout<<"sno="<
class student
{
private string sno;
private string sname;
private int math_score;
private int english_score;
private int computer_score;
}