#include <iostream>
using namespace std;
class personal_details
{
    char name[30],blood[10],gender[10],father[30],mother[30],hobby[20];
    int date,month,year,age;
    public:
    void getdata(void);
    void display(void);
};
void personal_details::getdata(void)
{
    cout<<"\n Enter your Name : ";
    cin>>name;
    cout<<name<<endl;
    cout<<"\n Enter your Date of Birth : ";
    cin>>date>>month>>year;
    cout<<date<<"."<<month<<"."<<year<<endl;
    cout<<"\n Enter your Age : ";
    cin>>age;
    cout<<age<<endl;
    cout<<"\n Enter your Blood Group : ";
    cin>>blood;
    cout<<blood<<endl;
    cout<<"\n Enter your Gender : ";
    cin>>gender;
    cout<<gender<<endl;
    cout<<"\n Enter your Father's Name : ";
    cin>>father;
    cout<<father<<endl;
    cout<<"\n Enter your Mother's Name : ";
    cin>>mother;
    cout<<mother<<endl;
    cout<<"\n Enter your Hobby : ";
    cin>>hobby;
    cout<<hobby<<endl;
}
void personal_details :: display(void)
{
    cout<<"\n ----- Personal Details -----"<<endl;
    cout<<"\n Name : "<<name;
    cout<<"\n Date of birth : "<<date<<"."<<month<<"."<<year;
    cout<<"\n Age: "<<age;
    cout<<"\n Blood group : "<<blood;
    cout<<"\n Gender : "<<gender;
    cout<<"\n Father's Name: "<<father;
    cout<<"\n Mother's Name: "<<mother;
    cout<<"\n Hobby : "<<hobby<<endl;
    cout<<"\n";
}
int main()
{
    personal_details d;
    d.getdata();
    d.display();
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: