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
#Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Ne

Memory Management Operator In C malloc( ), calloc( ), realloc( ), and free( ) are used to mange dynamic memory.  In addition to these function C++ have derived two unary ope

Array of Objects A class is a template, which can contain data items as well as member functions to operate on the data items. Various objects of the class can also be declared

Test scores solution help. Three member variables

what is a variable

answer for tcs is working question

What does ODBC do in context with PHP? PHP supports many databases such as dBase, Microsoft SQL Server, Oracle, etc. however, it also supports databases such as filePro, FrontB

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

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