Program of multipication using inline function, C/C++ Programming

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 "<Output:

 

Enter the two numbers

6 5

Multiplication of 6 and 5=30

 

 

Posted Date: 9/29/2012 4:23:37 AM | Location : United States







Related Discussions:- Program of multipication using inline function, Assignment Help, Ask Question on Program of multipication using inline function, Get Answer, Expert's Help, Program of multipication using inline function Discussions

Write discussion on Program of multipication using inline function
Your posts are moderated
Related Questions

I. COURSE DESCRIPTION Develops a working knowledge of object-oriented concepts in areas of classes, inheritance, data structures, error handling, templates and file processing.

Hiding overloaded functions We cannot overload a base class function by redefining it in a derived class with a dissimilar argument list. Consider examples to see if similar fu

#include stdio.h> #include conio.h> #include string.h>   void del(char[],char *); main() {           char str[30],ch,*pp;           clrscr();           p

The heart of the modern electronic system is the microprocessor e.g. the video, sound, game consoles, portable phones and domestic appliances. Let us consider the heart of a home c

Project Description: I have software written with VB that i helped design, but now the original author died,(Neil Tromp), and the software ended up in the hands of someone else!

Problem: (a) Describe a linked list. (b) Explain the three different types of linked list with the help of diagrams. (c) Give two advantages and two disadvantages o

Operation on array: void Array::add( Object& toAdd ) {     lastElementIndex++;     while( ptrAt( lastElementIndex ) != ZERO &&            lastElementIndex

Purchasing Code Signing Certificate I want to purchase a Code Signing Certificate in good standing from someone in order to sign my .EXE programs with. Please be aware I do n

wap to calculatethe volume of cone,cylinderand sphere