/*
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::: THIS PROGRAM ELOBRATE THE CONCEPT OF INLINE FUNCTION :::::
::::: IN C++ LANGUAGE PUBLIC BY DX PANCHAL AT MCA LAB :::::
::::: ON DATE >11/04/2013 :::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
*/
// HEADER FILE DECLATION
#include<iostream.h>
#include<conio.h>
#include<dos.h>
// CLASS DECLARATION
class temp
{
public:
int a,b;
inline int sum(int x,int y)
{
a=x;
b=y;
return(a+b);
};
};
// END OF CLASS
void main()
{
clrscr();
temp t1;
cout<<"\n\t\tVALUE FROM INLINR FUNCTION\n\t\t"<<t1.sum(10,20);
getch();
}
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::: THIS PROGRAM ELOBRATE THE CONCEPT OF INLINE FUNCTION :::::
::::: IN C++ LANGUAGE PUBLIC BY DX PANCHAL AT MCA LAB :::::
::::: ON DATE >11/04/2013 :::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
*/
// HEADER FILE DECLATION
#include<iostream.h>
#include<conio.h>
#include<dos.h>
// CLASS DECLARATION
class temp
{
public:
int a,b;
inline int sum(int x,int y)
{
a=x;
b=y;
return(a+b);
};
};
// END OF CLASS
void main()
{
clrscr();
temp t1;
cout<<"\n\t\tVALUE FROM INLINR FUNCTION\n\t\t"<<t1.sum(10,20);
getch();
}
No comments:
Post a Comment