为什么警告this

chenyu2202863 chenyu2202863 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
#ifndef DLINK_H
#define DLINK_H
//(c) ChenYu 2007.4.29

class DLink
{
public:
DLink(int i_d):p_prev(this),p_next(this),id(i_d){}//问题
int Id() const {return id;}
DLink const *Next() const {return p_next;}
DLink *Next() {return p_next;}
void SetNext(DLink *next){p_next=next;}
DLink const *Prev() const{return p_prev;}
DLink *Prev(){return p_prev;}
void SetPrev(DLink *prev){p_prev=prev;}
void Unlink();
private:
int id;
DLink *p_prev;
DLink *p_next;
};

#endif

为什么编译器警告我this有问题,用的是VS2005
...全文

相关推荐

Python3 pip3 list 出现 DEPRECATION 警告的解决方法

今天小编就为大家分享一篇Python3 pip3 list 出现 DEPRECATION 警告的解决方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧

weixin_38603924

Intellij IDEA如何去掉@Autowired 注入警告的方法

主要介绍了Intellij IDEA如何去掉@Autowired 注入警告的方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

weixin_38555304

Python warning警告出现的原因及忽略方法

在本篇文章里小编给大家分享的是关于Python warning警告出现的原因及忽略方法,有需要的朋友们可以学习参考下。

weixin_38621427

IAR安装、编译等错误、警告集

主要解决IAR安装过程出现的小问题 错误提示: Fatal Error[Cp001]: Copy protecTIon check, No valid license found for this product [20] “Error[e16]: Segment CSTACK (size: 0x50 align: 0x1) is too long for segment definition. At least 0x50 more bytes needed. The problem occurred while processing the segment placement command "-Z(DATA)CSTACK+_STACK_SIZE#", ” Warning[Pe001]: last line of file ends without a newline F:\emoTion\IAR\PK 升级\CC1110-8\main.c 179

sendoc

使用@Autowired注解警告Field injection is not recommended的解决

主要介绍了使用@Autowired注解警告Field injection is not recommended的解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

weixin_38503496
评论 5
收藏 已收藏
分享
返回顶部
chenyu2202863
C++ 语言 65,214 成员 250,514 内容