#include "iostream.h"
#include "string.h"
class student
{
private:
string Num;
string Name;
int C;
int math;
int Chinese;
public:
student()
{
Num=" ";
Name=" " ;
C=0;
math=0;
Chinese=0;
}
~student()
{
}
void setstuInfo()
{
cout<<"Input student Num:";
cin>>Num;
cout<<"Input student Name:";
cin>>Name;
cout<<"Input C:";
cin>>C;
cout<<"Input math:";
cin>>math;
cout<<"Input Chinese:";
cin>>Chinese;
}
int GetStuSum()
{
return (C+Chinese+math);
}
int GetStuAvg()
{
return (C+Chinese+math)/3;
}
void DisplayStu()
{
cout<<"Name:"<