摘要: InheritanceThe pointer or reference to base class can address/be assigned with any of the classes derived from base class with virtual functions through mechanism of dynamic binding.There are three ways to support polymorphism:through implicit conversion (from a pointer or reference to derived class 阅读全文
posted @ 2013-08-15 09:51 iDragon 阅读(306) 评论(0) 推荐(0)
摘要: Normal COM.cpp 1 #include "resource.h" // 主符号 2 #include "ATLCOM_i.h" 3 #include "_IDragonComEvents_CP.h" 4 #if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA) 5 #error "Windows CE 平台(如不提供完全 DCOM 支持的 W 阅读全文
posted @ 2013-08-15 08:35 iDragon 阅读(397) 评论(0) 推荐(0)
摘要: All we did must depend on compiler, and then What we did can run on machine.What does compiler do behind our programm?Reference to :http://gcc.gnu.org/http://www.cnblogs.com/lingqing/archive/2012/08/04/2623241.html 1 1: -c GCC 把给它的文件编译成目标文件,用源文件的文件名命名 2 e.g 3 gcc -c Zhanglong.c longzhang.c 4 ... 阅读全文
posted @ 2013-08-14 17:07 iDragon 阅读(452) 评论(0) 推荐(0)
摘要: Everything has its properties and has relation with each other.All in world can be related to each other by a kind of special router.More videos onhttps://class.coursera.org/datasci-001/lecture/previewMachine Learning Videos on:http://blog.videolectures.net/100-most-popular-machine-learning-talks-at 阅读全文
posted @ 2013-08-14 12:38 iDragon 阅读(707) 评论(0) 推荐(0)
摘要: Everything has its own regulation by defining its grammar.ECMAScript regular expressions pattern syntaxThe following syntax is used to construct regex objects (or assign) that have selected ECMAScript as its grammar.A regular expression pattern is formed by a sequence of characters.Regular expressio 阅读全文
posted @ 2013-08-14 08:18 iDragon 阅读(464) 评论(0) 推荐(0)
摘要: Everything has its lifecycle, from being created to disappearing.Pass by reference instead of pass by value尽量用“传引用”pass reference 而不用“传值” pass valuec语言中,什么都是通过传值来实现的,c++继承了这一传统并将它作为默认方式。除非明确指定,函数的形参parameter总是通过“实参argument的拷贝”来初始化的,函数的调用者得到的也是函数返回值的拷贝. Pointer also is copied to pass as parameter. If 阅读全文
posted @ 2013-08-13 16:05 iDragon 阅读(314) 评论(0) 推荐(0)
摘要: More numbers, More power.We waste much more every day.Everything can be connectible through special router mechanism.Google Cloud Computinghttp://www.cs.rutgers.edu/~pxk/417/notes/16-dfs.htmlApache HadoopHadoop ClusterFacebookEMCGlobal File System in red hathttp://www.redhat.com/magazine/006apr05/fe 阅读全文
posted @ 2013-08-13 14:18 iDragon 阅读(320) 评论(0) 推荐(0)
摘要: Thank to the pepole who devote theirself to the common libs. STL(http://www.cplusplus.com/reference/)旧的C++头文件名如将会继续被支持,尽管它们不在官方标准official standard中。这些头文件的内容不在名字空间std中。No _STDBEGIN (namespaces std {}and _STDEND。新的C++头文件如包含的基本功能和对应的旧头文件相同,但头文件的内容在名字空间std中。(在标准化的过程中,库library中有些部分的细节被修改了,所以旧头文件和新头文件中的实体 阅读全文
posted @ 2013-08-13 10:01 iDragon 阅读(289) 评论(0) 推荐(0)
摘要: Pepole who make a greate contribution on common libaraies deserve our respect.Component(Widget) / STL / Container(Collection)合成不会强迫我们的程序设计进入继承的分级结构中has-a relationship。同时,合成显得更加灵活,因为可以动态选择一种类型(以及行为),而继承要求在编译期间准确地知道一种类型。Java的工具(实用程序)库提供了一些“集合类”(亦称作“容器类”,但该术语已由AWT使用,所以这里仍采用“集合”这一称呼)。利用这些集合类,我们可以容纳乃至操纵自 阅读全文
posted @ 2013-08-07 17:52 iDragon 阅读(308) 评论(0) 推荐(0)
摘要: MachineCode->Assembly->CIL(.Net) or SpecialMachineCode(JVM)->Pogramming codeCIL Instruction SetOpcodeInstructionDescription0x58addAdd two values, returning a new value.0xD6add.ovfAdd signed integer values with overflow check.0xD7add.ovf.unAdd unsigned integer values with overflow check.0x5F 阅读全文
posted @ 2013-08-07 16:58 iDragon 阅读(352) 评论(0) 推荐(0)