Home > DeveloperSection > Forums > How to create a function in c ?
C G E Mannerheim
C G E Mannerheim

Total Post:29

Points:203
Posted on    June-13-2013 7:16 AM

 Visual C++ Visual C++ 
Ratings:


 1 Reply(s)
 741  View(s)
Rate this:
Hi,

I want to create function in C++, but how? Can you help me to do this?
If possible then provide line of code.

Any help would be amazing thank you! 


AVADHESH PATEL

Total Post:604

Points:4228
Posted on    June-14-2013 2:03 AM

Try as following:

class myclass{
public:
show( );
};
myclass:: show()
{
cout<<"In function\n";
}

Don't want to miss updates? Please click the below button!

Follow MindStick