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<
};
int main()
{
distance dist;
clrscr();
dist.getdist();
dist.showdist();
distance* distptr;
distptr=new distance;
distptr->getdist();
distptr->showdist();
cout<
}
OUTPUT:
Enter feet: 5
Enter inches: 5
5-5
Enter feet: 6
Enter inches: 1
6-1
Shopping In MUMBAI
Are you searching for Discounts, offers, sale in Mumbai ? You are in the right place. MUMBAI, a shopping haven, has no dearth of great discounts and sales. This blog features the best MUMBAI shopping offers, sale, discounts and deals and bargains CURRENTLY GOING on in Mumbai plus a few free things thrown in on top.
Don't wait for it because once they are gone, they are gone. Hurry!..By clicking the "Like" button you will receive a daily update of discounts, sale, offers going on in Mumbai. LIKE IT.... SHARE IT...njoY.
Friday, December 26, 2008
Write a C++ program to implement pointers to objects.
Posted by ars at 6:11 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment