thanks John.
i have another question about inline function
I wrote a class to calculate lines in cpp files or head files.
class clsCalculateLines
{
long lNullline;
char* p_FileName;
public:
clsCalculateLines(char* m_FilePara):p_FileName(m_FilePara);
{
lNullline=0;
};
};
my question is why the constructor function must be a inline function. if i
define the constructor outside the class definition, i could not compile it
correctly, i thought ":p_FileName(m_FilePara)" brought the trouble to me,
right?