|
[求助]虚继承中的析构函数
首先, 感谢您的回答, 然还是没有解答我的疑问 针对您所分析的代码 1. 00171A20 mov eax,dword ptr [ecx-4] ; ecx指向的是对象首地址+8处, 所以这里实际上是在取虚基类表指针 ==> 我想问的问题就是为什么ecx指向的是对象首地址+8处, 而不是直接的首地址 2. 01301AAA mov dword ptr [esi+1Ch],1303438h ; 设置4个直接父类的虚基类表指针 ==> 个人感觉这个注释不对, 应该是设置4个直接父类的虚函数偏移(按照书上说所的, 也就是vt_offset) |
|
[求助]第十章ShowNumber程序BUG
[QUOTE=roccheung;1234496]看到钱老师的源代码, delete [] pMyString; // BUG所在处 我不太理解什么意思. pMyString = new CMyString[2]; delete [] pMyString; 这么释放有什么问题吗?[/QUOTE] 明白楼主的意思 我也觉得代码没有什么Bug 推荐可能是之前使用了delete, 而后来版本改为delete[], 但是关于修复Bug的字眼未即时更正 |
|
[原创]看雪升正式会员真让人郁闷
本来自己用MFC写了程序, 添加IE控件, 定时刷新 挂了一天之后发现现在一天1kx封顶... 无奈在安全资讯转了两个帖子, 赚了10kx 现已是初始会员... 大家也要努力了... |
|
[求助]对本书中关于常量解释的一些疑惑
个人见解 书上P29“常量没有地址(不包括const定义的伪常量)” 是指在C++中无法对常量使用&, 进行取地址, 应该结合前文来看 如果对于二进制代码, 包括指令与数据, 肯定是有地址的 |
|
[分享]再再发一个邀请码..(已更新)
KX,邀请码... |
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值