Headlines
Loading...
Write a C++ program to implement pointers to objects.

Write a C++ program to implement pointers to objects.

PROGRAM: #include #include class distance { private: int feet; float inches; public: void getdist() { cout<<"\n www.adkool.com"; cout<<"\n Enter feet: "; cin>> feet; cout<<"Enter inches: "; cin>>inches; } void showdist() { cout<<"\n www.adkool.com"; cout<getdist(); distptr->showdist(); cout<
*** PLEASE checkout the Best deals from for top sites like Amazon, Flipkart etc ***