Posts

Showing posts from February, 2026

OOPs with C++

Image
  https://erp-parul.blogspot.com/2026/02/oops-with-c.html 1,4,5,3,2,7,11,9,12,14,15,10,18,13,19,20,22,23,24,25,26,29,30,31,32,33,34,35,36,37 // You are using GCC #include<iostream> #include<iomanip> #include<string> using namespace std; class HealthProfile {     private:     string name;     int age;     double height;     double weight;          public:     void setName(const string &n){         name=n;     }     void setAge(int a){         age=a;     }     void setHeight(double h)     {         height=h;     }     void setWeight(double w){         weight=w;     }          string getName(){         return name;     }     int getAge(){      ...