#include
using namespace std;
#define m 10000000
template
class Student
{
int n;
public:
int b1[m];
float b2[m];
float b3[m];
void set();
void display();
private:
N num[m];
M math[m];
E eng[m];
};
template
void Student
{
cout<<"Please input the student's number and the math grade and the english grade:"<
for(int i=0;i<=n;i++)
{
cin>>num[i]>>math[i]>>eng[i];
b1[i]=num[i];
b2[i]=math[i];
b3[i]=eng[i];
}
}
template
void Student
{
cout<<"number\t"<<"math\t"<<"english\t";
for(int j=0;j<=n;j++)
cout<
void main( )
{
Student
std1.set();
std1.display();
}
//如果不一样,可以这么写
函数既然不需要返回值,那就不用写函数类型了,直接void就可以