- 博客(11)
- 资源 (57)
- 收藏
- 关注
原创 const 变量的链接性
<br />《C++ Primer Plus(第五版)中文版》P277:<br />在 C++ (但不是在 C 语言)中,const 对默认存储类型稍有影响。默认情况下,全局变量的链接性为外部的,但 const 全局变量的链接性为内部的。也就是说,在 C++ 看来,全局 const 定义就像使用了 static 说明符一样。 <br /> <br />测试代码(VS2010 /W4 /WX):<br />// const_var_def.cpp extern const int const_var
2010-07-29 00:01:00 2617 5
原创 剪贴板
<br />// begin 20100720 //#include <iostream> ////#define MYMACRO ////int main()//{// int ia = 9; //// int* pint = &ia; // int* pint2 = const_cast<int*>(pint); // std::cout<< pint2 << std::endl; ////#ifdef MYMACRO_1 //
2010-07-20 18:50:00 1100 3
原创 if (false) 代码块中的语句会被编译
<br />测试代码:<br />#include <iostream> int main(){ bool bFlag = false; if (bFlag) { std::cout << "This statement will never be executed. " << std::endl; #pragma message("The if statements will be compiled, whether the expre
2010-07-14 10:59:00 2586 2
转载 指向类成员的指针(Pointers to Class Members)
<br />原文 http://old.blog.edu.cn/user2/wanglina/archives/2006/1241853.shtml <br /> 类成员的类型<br />指向成员函数的指针必须与向其赋值的函数类型匹配,不是两个而是三个方面都要匹配:1 .参数的类型和个数 2 .返回类型 3 .它所属的类类型<br />普通函数指针和成员函数指针:<br />函数指针存储函数的地址,可以被用来直接调用那个函数。成员函数指针首先必须被绑定在一个对象或者一个指针上,才能得到被调用对象的thi
2010-07-13 00:27:00 954 1
原创 有继承关系的构造函数和析构函数的执行次序
为了讨论方便, 这里假设继承层次只有两层, 即基类和派生类. <br />对于基类对象的创建和销毁, 与普通类对象的类似. <br />对于派生类对象: #1 创建时, 在进入派生类构造函数函数体前(即派生类构造函数函数体的左花括号前), 执行基类的构造函数, 然后执行派生类构造函数成员初始化列表中的成员初始化, 最后进入派生类构造函数函数体; #2 销毁时, 先进入派生类析构函数函数体, 待所有语句执行完即将退出时(即派生类析构函数函数体的右花括号前), 进入基类析构函数执行, 基类析构函数执行完后, 派
2010-07-12 22:54:00 264
转载 如何区分“动态库的导入库”与“静态库”
<br />原文 http://blog.sina.com.cn/s/blog_611b75a80100emow.html <br /> <br /> <br />通过命令:>lib /list Demo.lib <br />如果该 Demo.lib 是静态库,输出如下:>lib /list Demo.libMicrosoft (R) Library Manager Version 8.00.50727.42Copyright (C) Microsoft Corporation. All rights re
2010-07-11 19:14:00 2330 1
原创 用 comsupp.lib/comsuppd.lib 还是 comsuppw.lib/comsuppwd.lib
<br />曾经用过 _bstr_t 类,MSDN 提示包含的库为 comsuppw.lib 或 comsuppwd.lib。<br /> <br />最近看到了 comsupp.lib 和 comsuppd.lib,到底该用哪个呢?<br /> <br />从 MSDN 得知:<br />(1) 当指定了/Zc:wchar_t 时,应该使用comsuppw.lib/comsuppwd.lib;<br />(2) 当指定了 /Zc:wchar_t- 时,应该使用comsupp.lib/comsuppd.l
2010-07-11 18:30:00 5860 1
转载 VC项目配置基础
原文链接 http://blog.csdn.net/phunxm/archive/2009/12/26/5082488.aspx 一.预处理宏1. 通用宏VC6.0中:Project SettingàC/C++àPreprocessor definitionsVC2005中:项目属性à配置属性àC/C++à预处理器定义WIN32:指明是Window 32位系统的编译器,一般用作平台识别。_MBCS/_UNICODE:指明该工程使用的字符集(多字节字符集/UNICODE)。在VC6.0的“Project Se
2010-07-08 02:29:00 2300 1
原创 VS2008 中命令行参数的设置
<br />项目名称右键 -> 属性 -> 项目属性页 -> 配置属性 -> 调试 -> 命令参数:在这里设置即可。<br />注意问题: <br />(1) 这里隐含了第一个参数,即可执行文件路径(如,X:/Path1/Path2/Test.exe); <br />(2) 多个参数必须用空格分隔。一个空格和多个空格效果一样,编译器将其解释为一个空格;逗号和分号不能用来分隔各参数,如果写上,会被认为是参数的一部分; <br />(3) 如果参数中包含有空格,则这个参数应该用英文状态下的双引号括起来做为一个整
2010-07-06 01:34:00 12964 5
原创 .dll 的搜索顺序
《Windows 核心编程(第5版)》P522 19.2.3 运行可执行模块:由于导入段只包含 DLL 的名称,不包含 DLL 的路径,因此加载程序必须在用户的磁盘上搜索 DLL。下面是加载程序的搜索顺序:(1) 包含可执行文件的路径;(2) Windows 的系
2010-07-06 00:12:00 3248 6
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关注的人