|
[原创]一道极难的C++模板题目
这3个类的设计本身就存在问题。LZF对象空间的分配具有特殊,因而不应该在外部Auto1和Auto2中分配,应该在LZF内部重载运算符new来实现各种特殊的空间分配要求。这才是解决问题的根本方法。 对于当前问题,想不出来,应该属于无解吧。已知对象指针求对象类型,这个问题就相当于给你4个字节,让你求类型。没戏 如果非要这么做的话,考虑到代码这么实现是为了不产生临时对象, 稍微变通了下,实现同样效果: 增加LZF::xx()函数,把B中的"::new( (void*)p ) *T"修改为"p->xx();" void LZF::xx() { ::new((void*)this) LZF; } |
|
[求助][讨论]新版的microsft visual studio开发环境下做不出来不依赖.net的程序了吗?
你用PE工具看一下导入了哪些特殊的库,然后GOOGLE下就清楚了 |
|
[注意]启用“课题+成果”的模式+成立“编程技术小组”(最近更新2008.6.27)
关于每个课题的具体情况我会慢慢补全。 |
|
[讨论]高手来看看一个是不是MFC框架本身存在的BUG??
你能编的过去,编译器疯了 HINSTANCE ShellExecute( HWND hwnd, |
|
|
|
|
|
[求助]CreateService()能否在远程机器上创建服务?
可以 CreateService是创建服务并添加到指定的服务管理器 第一个参数SC_HANDLE hSCManager SC_HANDLE OpenSCManager( LPCTSTR lpMachineName, // 设置为远程机器名 LPCTSTR lpDatabaseName, DWORD dwDesiredAccess ); |
|
|
|
[原创]多桌面切换程序-通杀所有网管程序
叫系统有点大了 |
|
|
|
|
|
|
|
|
|
[原创]实现两个三阶方阵的加法和减法运算
有个建议: 由于楼主目前的大部分作品都是比较基础的语法练习型为主, 因而我没办法给你加精华 我希望在这个阶段,你把所有作品都标上“[实验n]”的字样, 或者你自己集成到那个实验专贴里 等你这个阶段学习结束,我会把你的所有实验打包成CHM,作为汇编入门教程。 虽然精华数量只有1,但我想这样更有意义。 你觉得呢? |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值