Professional Documents
Culture Documents
struct BMI{
private:
int ID;
public:
void SetValues(){
cout<<"Person ID"<<endl;
cin>>ID;
cout<<"Person Name"<<endl;
cin>>Name;
cout<<"Person Length"<<endl;
cin>>Length;
cout<<"Person Weight"<<endl;
cin>>Weight;
string CalBMI(){
else {
void Display(){
cout<<ID<<"\t\t"<<Name<<"\t\t"<<Length<<"\t\t"<<Weight<<"\t\t"<<CalBMI()<<endl;
}
};
int main()
BMI b;
b.SetValues();
b.Display();
return 0;