class Student
{public:
void set();
void show();
private:
int num;
int score;
};
class cls: public Student
{
};
#include<iostream>
using namespace std;
#include"Student.h"
#include "cls.h"
void Student::set()
{
cin>>num;
cin>>score;
}
void Student::show()
{
cout<<num<<" "<<score<<endl;
}
int main()
{
Student si[100];
int i;
int n;
cin>>n;
Student * c = new cls[n];
for(i=0;i<n;i++)
{
c[i].set();
}
for(i=0;i<n;i++)
{
c[i].show();
cout<<endl;
}
return 0;
}