Could someone pleasee help me debug this program..Its for converting meters-cm to ft-inches and vice versa and adding the 2...
__________________________________________________ _________________
Code:
#include
#include
class db;
class dm
{
float m;
public:
void getdata()
{
cout<<"\nEnter the distance in meters-centimeters:";
cin>>m;
}
void display(dm b)
{
cout<<"\nTotal distance in meters-centimeters:"<>f;
}
void display(db d)
{
cout<<"\nTotal distance in feet-inches:"<meters-centimeters"<<"\n2>feet-inches";
cin>>n;
switch (n)
{
case 1: b=add(a,c);
b.display(b);
case 2: d=sum(a,c);
d.display(d);
}
cout<<"\nDo you want to continue?";
cout<<"\nPress 1 if yes\n";
cin>>y;
}while(y==1);
getch();
}