I'm new in C++language, so there are some problem. Basically I have created one function in C++ successfully but how and where write line of code for calling that function. Please provide useful line of code.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
class myclass{public:
show( );
};
myclass:: show( )
{
cout<<"In function\n";
}
int main( )
{
myclass obj;
obj.show( );
}