早教吧作业答案频道 -->其他-->
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
public:
CWinApp::CWinApp()
{
m_pcurrentWinApp = this;
cout
▼优质解答
答案和解析
确实是怪怪的,如果只是指向this完全是脱裤子放屁,又是哪个无良的书里写的.
不过,如果是为了连接其他的对象,比如像链表那样,还是有用的,看以后怎么用了.可能只是初始化为this,然后可能会有方法把它指向别的对象.
不过,如果是为了连接其他的对象,比如像链表那样,还是有用的,看以后怎么用了.可能只是初始化为this,然后可能会有方法把它指向别的对象.
看了 class CWinApp ...的网友还看了以下:
chinese为是么后面不能加classmath等能加classenglish能加class吗?c 2020-04-09 …
I was lare for ____ ,so I had to stay at school a 2020-05-13 …
class CWinApp { public:CWinApp* m_pcurrentWinApp; 2020-05-14 …
How many students ___________ ___________ in 2020-05-14 …
It time for class.The students ___(停止唱歌) and ___( 2020-05-16 …
一个派生类去继承两个基类,但两个基类中有同名函数,于是在派生类中有歧义,形如:class ABC{ 2020-05-16 …
英语语法 “年级、班级”怎么排列?是先写年级,还是先写班级?例如:A.Grade 2,Class 2020-05-16 …
阅读信息,Class:Class One Grade:Grade SixWhat class an 2020-06-27 …
七上英语:补全对话,首字母已给出MissLiu:Standup,class.(1)H(),class 2020-10-30 …
constructor必须与class同名,但方法不能与class同名?3.下列说法正确的有()A. 2020-12-06 …