#include <iostream>
using namespace std;
class Student
{
public:
void get()
{
cin>>age>>name;
}
void display()
{
cout<<"age:"<<age<<endl;
cout<<"name:"<<name<<endl;
}
private:
int age;
string name;
};
int main()
{
Student stud;
stud.get();
stud.display();
return 0;
}
using namespace std;
class Student
{
public:
void get()
{
cin>>age>>name;
}
void display()
{
cout<<"age:"<<age<<endl;
cout<<"name:"<<name<<endl;
}
private:
int age;
string name;
};
int main()
{
Student stud;
stud.get();
stud.display();
return 0;
}