早教吧 育儿知识 作业答案 考试题库 百科 知识分享

class CWinApp { public:CWinApp* m_pcurrentWinApp;public:CWinApp::CWinApp(){m_pcurrentWinApp = this;cout

题目详情
class CWinApp { public:CWinApp* m_pcurrentWinApp;
public:
CWinApp::CWinApp()
{
m_pcurrentWinApp = this;
cout
▼优质解答
答案和解析
确实是怪怪的,如果只是指向this完全是脱裤子放屁,又是哪个无良的书里写的.
不过,如果是为了连接其他的对象,比如像链表那样,还是有用的,看以后怎么用了.可能只是初始化为this,然后可能会有方法把它指向别的对象.