How To make Classes with inline Functions in C++


The inline functions are a C++ enhancement feature to increase the execution time of a program. Functions can be instructed to compiler to make them inline so that compiler can replace those function definition wherever those are being called.Learned about basic functions in c++, there is more: the inline function. Inline functions are not always important, but it is good to understand them.When the compiler inline-expands a function call, the function’s code gets inserted into the caller’s code stream.

Developer : ijaz Rs khAn & Bilal tahir

Email : [email protected]

Compiler : Microsoft Visual Studio 2013

Comp. Date: 1-11-2015

Source Code

#include<iostream.h>// for input output standerd#include<conio.h>//for clrscr()class first// class first{private:// private classint data;//public classpublic:void setdata(int d) { data=d; }void showdata() { cout<<"Data = "<<data<<endl; }};main( )// main function{clrscr();// clear screenfirst object;object.setdata(545);object.showdata();getch();//get char}

if you Face any problem Freely contact us.Give your Feed Back.Thank you.