#include <iostream>
using namespace std;
class person
{
char name[30];
int age;
public:
void getdata(void);
void display(void);
};
void person :: getdata(void)
{
cout<<"Enter Name: ";
cin>>name;
cout<<"Enter Age: ";
cin>>age;
}
void person :: display(void)
{
cout<<"\nName: "<<name;
cout<<"\nAge: "<<age;
}
int main()
{
person p;
p.getdata();
p.display();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwpjbGFzcyBwZXJzb24KewogICAgY2hhciBuYW1lWzMwXTsKICAgIGludCBhZ2U7CiAgICBwdWJsaWM6CiAgICB2b2lkIGdldGRhdGEodm9pZCk7CiAgICB2b2lkIGRpc3BsYXkodm9pZCk7Cn07CnZvaWQgcGVyc29uIDo6IGdldGRhdGEodm9pZCkKewogICAgY291dDw8IkVudGVyIE5hbWU6ICI7CiAgICBjaW4+Pm5hbWU7CiAgICBjb3V0PDwiRW50ZXIgQWdlOiAiOwogICAgY2luPj5hZ2U7Cn0Kdm9pZCBwZXJzb24gOjogZGlzcGxheSh2b2lkKQp7CiAgICBjb3V0PDwiXG5OYW1lOiAiPDxuYW1lOwogICAgY291dDw8IlxuQWdlOiAiPDxhZ2U7Cn0KaW50IG1haW4oKQp7CiAgICBwZXJzb24gcDsKICAgIHAuZ2V0ZGF0YSgpOwogICAgcC5kaXNwbGF5KCk7CiAgICByZXR1cm4gMDsKfQ==