Subject Name    C++
Program Name    DB DM Class
Program Description    Create two classes DM and DB which store the values of distance. DM stores distance in meters and centimeters. DB stores distances in feet and inches. Write a program that can read values for the class object and add one object of DM with another object of DB. Use a friend function to carry out the addition operation and this function will display answer in meter and centimeters.
 
To Download Code, Use Ctrl+A(Select All) & Ctrl+C (Copy)
Program Code
   
Input Values(You must enter all user input value here, that you want to use during runtime)
To Run C++ Program
1. #include<iostream.h> change to #include<iostream>
2. #include<math.h> change to #include<cmath>;
3. #include<string.h> change to #include<cstring>;
4. Add line using namespace std;
These all(1 to 4) will be done automatically..., So don't worry.


 
Copyright © 2019. All rights reserved. Terms, Privacy




We use cookies to improve your experience on our site and to show you relevant advertising. By browsing this website, you agree to our use of cookies. Learn more