everyone. I have problem about the static function.
In the Employee.h, I wrote
class Employee
{
public:
static int getCount();
private:
static int count;
}
In the Employee.cpp,
static int Employee::getCount()
{
return count;
}
But when I compile, the error shows
"error C2724: 'Employee::getCount': 'static' should not be used on member functions defined at file scope"
Can somebody show me how to fix it? Thanks.