VC++模拟技术中的一个小问题......在线....
class CWinApp:public CWinThread
{
public:
CWinApp* m_pCurrentWinApp;
pulbic:
CWinApp::CWinApp(){ m_pCurrentWinApp=this;
cout<<"CWinApp Constructor\n";}
CWinApp::~CWinApp(){ cout<<"CWinApp Destructor\n";}
};
请问:第四行CWinApp* m_pCurrentWinApp;是不是在C语言中称之为“递归定义”的一种定义方式?
为什么要这么定义?
能不能在这个类外面定义?谢谢,在线......