Problem with implementation..

if i declare a member function in the header file like this:
 
const char* User(const char* userId);

whats the syntax for declaring it in the *.cpp file? (the name of the class is-"Pop3Adaptor"...just for illustration
It's just like how you would declare it if it were all in one file.
1
2
3
4
5
6
7
8
9
10
11
class myClass
{
    // Declaration
    int myFunction(char someParam);
};

// Definition -- this is what goes in the .cpp file
int myClass::myFunction(char someParam)
{
    // stuff here
}
Topic archived. No new replies allowed.