- 博客(10)
- 资源 (57)
- 收藏
- 关注
原创 后自增(减)的结果不是左值
<br />#include <cstdio> int main(){ int foo = 5; void* p = NULL; printf_s("Address of foo is 0x%p. /r/n", &foo); // 0x0012FF60 p = &(++foo); printf_s("Address of ++foo is 0x%p. /r/n", p); // 0x0012FF60 p =
2010-12-31 19:02:00 1073
原创 Objective-C 中方法的重载,覆盖和隐藏
<br />在C++中,类方法有重载(overload)、覆盖(override)和隐藏(hide)的概念(当然,函数也可重载。)。<br />C++的覆盖和隐藏是个非常容易混淆的概念,尤其隐藏。学到Objective-C,因为它与C++有相似的地方,所以对此也格外留心。<br />从下面代码测试结果可以看出,OC远没有C++那么“灵活”。具体结论输出信息一目了然。<br />/** * test_Hide.m */ #import <Foundation/Foundation.h>
2010-12-24 03:32:00 6386 1
转载 Designated Initializers
<br />6.26 Designated Initializers<br />Standard C90 requires the elements of an initializer to appear in a fixed order, the same as the order of the elements in the array or structure being initialized.<br />In ISO C99 you can give the elements in any ord
2010-12-19 21:26:00 1550 2
转载 Heap: Pleasures and Pains
<br />Murali R. Krishnan<br />Microsoft Corporation<br />February 1999<br />Summary: Discusses common heap performance problems and how to protect against them. (9 printed pages)Introduction<br />Are you a happy-go-lucky user of dynamically allocated C/C++
2010-12-16 21:13:00 1121
转载 Segment/Section/Virtual Memory/Page之间的区别
<br />对于 Segment, Section, Virtual Memory, Page 这些词我们肯定不会陌生. 但在阅读一些书籍和文章的时候, 不知是那些作者的缘故还是自己的原因, 我们不能正确区分他们之间的区别. 我不得不承认, 真要 100% 弄清楚这些概念并不是一件容易的事情, 因为它们涉及到很多不同方面的内容 (例如编译/连接, 汇编, 操作系统等) , 同时这些内容本身就不太容易掌握. 但是我想写这篇文章, 一方面是为了总结我对这些内容的分析和理解, 另一方面在以后的学习中我可以对这篇文
2010-12-16 13:21:00 3430 1
转载 HeapAlloc 和 GlobalAlloc 以及 VirtualAlloc 三者之间的关系
<br />该文章系转载, 出处不详, 仅具参考价值. <br /><br />VirtualAlloc 一次分配 1PAGE 以上的 RAM. 每次分配都是 PAGE 的整数倍. 你不会想为了分配 1 个 BYTE 的空间而浪费剩下的 4095 字节. OK, 你可以自己写算法, 多分配几 PAGE. 然后每次分配少量数据时就从那几 PAGE 中划分出来. KERNEL32 提供了一个解决办法, 用 HeapAlloc/GlobalAlloc 分配 RAM. 这样, KERNEL32 帮助完成分配动作,
2010-12-15 14:17:00 6962
转载 Page State
<br />The pages of a process's virtual address space can be in one of the following states.<br />1. Free<br />The page is neither committed nor reserved. The page is not accessible to the process. It is available to be reserved, committed, or simultaneousl
2010-12-15 13:46:00 925 1
转载 Allocating and Releasing Memory for a BSTR
<br /> <br />When you create BSTRs and pass them between COM objects, you must take care in treating the memory they use in order to avoid memory leaks. When a BSTR stays within an interface, you must free its memory when you are done with it. However, whe
2010-12-14 18:17:00 784
转载 Policies/Binary Compatibility Issues With C++
<br />Definition<br />A library is binary compatible, if a program linked dynamically to a former version of the library continues running with newer versions of the library without the need to recompile.<br />If a program needs to be recompiled to run wit
2010-12-05 22:57:00 865
转载 How To Create 32-bit Import Libraries Without .OBJs or Source
<br />There are two ways to create an import library given a .DLL:Create a .DEF file for use with the LIB /DEF: command.Stub out functions, and use the .OBJ files created to mimic the import/export relationships. Then use the LIB /DEF: command to create th
2010-12-01 19:11:00 796
TortoiseSVN-1.6.15.21042-x64-svn-1.6.16.msi
2011-05-25
TortoiseSVN-1.6.15.21042-win32-svn-1.6.16
2011-05-25
Galcott.Super.Text.Search.v3.13-BEAN
2011-05-24
XYplorer 9.90.1000
2011-05-24
Doxygen 1.7.4 Linux
2011-05-24
Doxygen 1.7.4 Windows
2011-05-24
GNU Emacs 23.3 Documentation
2011-05-24
GNU Emacs 23.3 (Part 3/3)
2011-05-24
GNU Emacs 23.3 (Part 2/3)
2011-05-24
GNU Emacs 23.3 (Part 1/3)
2011-05-24
Sweetscape.Software.010.Editor.v3.1.3-CRD
2011-05-24
Vim 7.3 (gvim73_46)
2011-05-24
DAEMON Tools Lite v4.40.2 (with SPTD 1.76)
2011-05-24
谷歌拼音输入法x64 2.4.15.88
2011-05-24
SysinternalsSuite (May 18, 2011)
2011-05-24
Whole.Tomato.Visual.Assist.X.for.Visual.Studio.6.0-2010.v10.6.1845.0.CracKed-LCG
2011-05-24
Notepad++ 5.9
2011-05-24
Notepad++ v5.8.4
2010-11-17
AsEclipse V1.8
2010-11-17
SoftMaker.Software.TextMaker.Viewer.v2010.5.19.585.Multilingual.WinAll.Cracked-CRD
2010-08-01
谷歌拼音输入法 v2.3.13.82 x86 版
2010-07-31
谷歌拼音输入法 v2.3.13.82 x64 版
2010-07-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人