16,548
社区成员




class Test
{
public:
Test(LPCTSTR lpStr) { Split(lpStr); }
Test(int Year, int Month, int Dat, int Status)
{
Copy(Year, Month, Dat, Status);
}
const Test& operator=(const Test& buf) { return Copy(buf); }
bool operator()(LPCTSTR lpStr) { return Split(lpStr); }
const Test& operator()(int Year, int Month, int Dat, int Status)
{
return Copy(Year, Month, Dat, Status);
}
operator LPCTSTR() { return _hName; }
operator int() { return _hStatus; }
Test() {}
~Test() {}
protected:
bool Split(LPCTSTR lpStr)
{
return true;
}
Test& Copy(const Test& buf)
{
return *this;
}
Test& Copy(int Year, int Month, int Dat, int Status)
{
return *this;
}
private:
char _hName[32];
char _hCountry[32];
int _hYear;
int _hMonth;
int _hDat;
int _hStatus;
};