If you are in this position, you'll probably also have a "doctor.h" containing the class declaration looking like this:
class Doctor
{
...
public:
static void enterDoctor(char*&fName,char*&lName,char*&ad,float &fee);
...
};
Now, in your CPP file, to define the body of this function, you don't need anymore to say it is static (static at file level means a different thing than at class level).
Just declare it as
void Doctor::enterDoctor(char*&fName,char*&lName,char*&ad,float &fee)
{
...
}
Note that virtual member functions also have this kind of problem.