Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Aim: Write a program of multipication using inline function
class Multiply
{
int x,y;
public:
void getdata();
inline calculate(int a,int b)
return(a*b);
}
void display();
};
void Multiply::getdata()
cout<<"Enter the two numbers"< cin>>x>>y; } void Multiply::display() { cout<<"Multiplication of "< cout< } int main() { clrscr(); Multiply m; m.getdata(); m.display(); getch(); } Output: Enter the two numbers 6 5 Multiplication of 6 and 5=30
cin>>x>>y;
void Multiply::display()
cout<<"Multiplication of "< cout< } int main() { clrscr(); Multiply m; m.getdata(); m.display(); getch(); } Output: Enter the two numbers 6 5 Multiplication of 6 and 5=30
cout< } int main() { clrscr(); Multiply m; m.getdata(); m.display(); getch(); } Output: Enter the two numbers 6 5 Multiplication of 6 and 5=30
int main()
clrscr();
Multiply m;
m.getdata();
m.display();
getch();
Output:
Enter the two numbers
6 5
Multiplication of 6 and 5=30
write a program that can accept numbers and perform all the four arithmetic operation
There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that
Note: Please refer to the Subject Outline for details regarding the assessment of the advanced assignment. The Problem You are to investigate the use of data structures an
THIS PROGRAM IS TO MULTIPLY THE TWO COMPLEX NO.S GIVEN BY THE USER #include #include #include struct complex { int real; int imag; }; void main() { clrs
Problems With Multiple Inheritance The following example presents a problem with multiple inheritance. class Aclass { public : void put()
What is the use of default constructor? - It's a constructor that doesn't accept any parameters. - If there is no user-defined constructor for a class, compiler declares a d
give a program to accept and print 2_D Array
Presently we are using several spreadsheets to give weekly activity and income reports. Much of the information is being frequently re-keyed into several spreadsheets - we are look
For this program you will add and test 2 new member functions to the IntSLList class posted on the website. The two member functions are: insertByPosn(int el, int pos) Assuming t
Write a program that predicts users age: Write a program that predicts users' age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/s
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd