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
Program to draw a circle: int main(void) { /* request auto detection */ int gdriver = DETECT, gmode, errorcode; int midx, midy; int radius = 100;
find area uder the curve y=f(x) between x=a and x=b #include float start_point, /* GLOBAL VARIABLES */ end_point, total_area; in
Define Automatic storage classes - computer programming? The Variables declared within function bodies are automatic by default and automatic variables are declared inside a fu
Write a program in C language to implement Two-Way Merge Sort. Input the following data to the program. Show all intermediate steps: 84, 83, 78,90,23,123,98,159,8,200
Unions A union is also like a structure, except that only single variable in the union is stored in the allocated memory at a time. It is a collection of mutually exclusive var
DIFFERENCE BETWEEN WHILE AND DO WHILE LOOP?
Problem: (a) What is the main advantage to using a data file? (b) What is meant by opening a data file? How is this accomplished? Illustrate your answer clearly with a sui
Conversion Functions Conversion functions are member functions used for the following purposes: 1. Conversion of object to basic data type. 2. Conversion of basic data ty
Control Flow The control flow statements are used when it is needed that the flow of the program is to be changed after taking some decision. This control flow statement theref
Static Class Members As we already know all the objects of the class have dissimilar data members but invoke the similar member functions. Though, there is an exception to this
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