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
Available in the string.h header file are the following routines strcat(string1,string2); This joins string2 to string1; care must be taken to allocate enough space for
Implementation of the Definition class: void Definition::put_word(char *s) { word = new char[strlen(s)+1]; strcpy(word,s); nmeanings = 0; } voi
Friend classes are used when two or more classes are designed to work together and require access to each other's execution in ways that the rest of the world shouldn't be permitte
how to write a c program for stone game
By pressing ‘6’ (i.e. key’6’ one time) on the keypad, the mobile shows ‘m’ on display screen in write text message area .
What is Virtual Destructor? Describe it.
There are two ways for initializes in C++ as shown in the example that follows. The first way uses the traditional C notation. The second way uses constructor notation. int foo
Program is to append the contents of one file to another: void main() { clrscr(); fstream file1,file2; char st1[13],st2[13];/* 13 because a filename canno
Problem: (a) Distinguish between a class and an object. (b) Define instantiation. (c) What is the importance of the "this" variable in java. (d) What is encapsulation?
Problem : (a) What do you understand by the term ‘constructor' in Java? Explain with an appropriate example. (b) Describe the differences between an object and a class usi
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