01 2010 档案

 
URI(URN、URL) and IRI
摘要:A Uniform Resource Name (URN) is a Uniform Resource Identifier (URI) that uses the urn scheme, and does not imply availability of the identified resource. Both URNs (names) and URLs (locators) are URIs, and a particular URI may be a name and a locator at the same time. A Uniform Resource Locator (UR 阅读全文
posted @ 2010-01-20 21:40 做个不善的人 阅读(774) 评论(0) 推荐(0)
Type Casting in C++
摘要:Converting an expression of a given type into another type is known as type-casting. We have already seen some ways to type cast: Implicit conversionImplicit conversions do not require any operator. They are automatically performed when a value is copied to a compatible type. For example: Here, th.. 阅读全文
posted @ 2010-01-17 15:19 做个不善的人 阅读(768) 评论(0) 推荐(0)
How to interpret complex C/C++ declarations (ZT)
摘要:from: http://www.codeproject.com/KB/cpp/complex_declarations.aspxContentsIntroductionThe basicsThe const modifierThe subtleties of typedefFunction pointersThe right-left rule [Important]Further examplesSuggested readingCredits IntroductionEver came across a declaration like int * (* (*fp1) (int) ) [ 阅读全文
posted @ 2010-01-17 12:04 做个不善的人 阅读(450) 评论(0) 推荐(0)
Introduction to Windows Tracing
摘要:Trace log 存储一个或者多个trace session中产生的trace message;系统会先把Trace message存放在trace session buffer中,然后将他们deliver到trace consumer或者写到一个trace log。这些message会被压缩。 Trace Provider Trace Provider是一个应用程序、操作系统组件或者Drive... 阅读全文
posted @ 2010-01-07 20:43 做个不善的人 阅读(904) 评论(0) 推荐(0)
sizeof 总结和类成员布局
摘要:根据C++ Complete Reference 对如下链接进行勘误http://blog.csdn.net/chief1985/archive/2009/10/23/4720191.aspxhttp://blog.csdn.net/wuliming_sc/archive/2009/01/31/3855607.aspx 阅读全文
posted @ 2010-01-03 15:00 做个不善的人 阅读(188) 评论(0) 推荐(0)
C++ 虚函数表
摘要:C++中的虚函数的作用主要是实现了多态的机制。关于多态,简而言之就是用父类型别的指针指向其子类的实例,然后通过父类的指针调用实际子类的成员函数。这种技术可以让父类的指针有“多种形态”,这是一种泛型技术。所谓泛型技术,说白了就是试图使用不变的代码来实现可变的算法。比如:模板技术,RTTI技术,虚函数技术,要么是试图做到在编译时决议,要么试图做到运行时决议。虚函数表对C++ 了解的人都应该知道虚函数(Virtual Function)是通过一张虚函数表(Virtual Table)来实现的。简称为V-Table。 在这个表中,主是要一个类的虚函数的地址表,这张表解决了继承、覆盖的问题,保证其容真实 阅读全文
posted @ 2010-01-03 12:48 做个不善的人 阅读(464) 评论(0) 推荐(0)
C++ FAQ for me
摘要:1. 为什么需要虚析构函数,什么时候需要?看下面的代码:虚析构函数 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->classClxBase{public:ClxBase(){};virtual~ClxBase(){cout<<"OutputfromthedestructorofclassClxBase!"<<endl;};virtualvoidDoSomething(){cout<<& 阅读全文
posted @ 2010-01-02 22:01 做个不善的人 阅读(303) 评论(0) 推荐(0)