65,210
社区成员
发帖
与我相关
我的任务
分享
CStatisticReporter *CInGameRunningShouter::m_srReporter = NULL ;
CInGameRunningShouter是类1
CStatisticReporter是类2
m_srReporter 是在类1中声明的
应该是这样的
class CInGameRunningShouter
{
...
private:
static CStatisticReporter *m_srReporter ; //该指针指向类2
...
}
因此整个表达式子就是对类1的m_srReporter进行定义初始化为NULL