2009年06月15日

转载 Trap includes Interrupt and Exception


Trap Dispatching
Interrupts and exceptions are operating system conditions that divert the processor to code outsidethe normal flow of control. Either hardware or software can detect them. The term trap refers to a processor’s mechanism for capturing an executing thread when an exception or an interrupt occurs and transferring control to a fixed location in the operating system. In Windows, the processor transfers control to a trap handler, a function specific to a particular interrup阅读全文>

发表于 @ 2009年06月15日 22:02:00|评论(loading...)|编辑|举报|收藏

2009年02月23日

原创 Precompiled header

In computer programming, a pre-compiled header is a technique used by some C or C++ compilers to reduce compilation time.In the C and C++ programming languages, a header file is a file whose text may be automatically included in another source file by the compiler, usually specified by the use of compiler directives in the source file.Header files can sometimes contain a very large amount of source code (for instance, the header files windows.h and Cocoa/Cocoa.h on Microsoft Wi阅读全文>

发表于 @ 2009年02月23日 20:18:00|评论(loading...)|编辑|举报|收藏

2009年02月17日

转载 Multi-Byte Character Set & Use Unicode Character Set

    所有的   string   类都是以C-style字符串为基础的。C-style   字符串是字符数组。所以我们先介绍字符类型。这里有3种编码模式对应3种字符类型。第一种编码类型是单子节字符集(single-byte   character   set   or   SBCS)。在这种编码模式下,所有的字符都只用一个字节表示。ASCII是SBCS。一个字节表示的0用来标志SBCS字符串的结束。       第二种编码模式是多字节字符集(multi-byte   character   set   or   MBCS)。一个MBCS编码包含一些一个字节长的字符,而另一些字符大于一个字节的长度。用在Windows里的MBCS包含两种字符类型,单字节字符(single-byte   characters)和双字节字符(double-byte   characters)。由于Windows里使用的多字节字符绝大部分是两个字节长,所以MBCS常被用DBCS(double-byte   character   set   or   DBCS)代替。阅读全文>

发表于 @ 2009年02月17日 17:52:00|评论(loading...)|编辑|举报|收藏

2008年09月16日

原创 C++私有继承和保护继承-转载


原文地址:(http://hellobmw.com/archives/cplusplus-private-and-protected-inheritance.html)及英文原文地址(阅读全文>

发表于 @ 2008年09月16日 08:47:00|评论(loading...)|编辑|举报|收藏

2008年07月18日

原创 C Sharp中的Virtual、Override和new关键词理解


在 C# 中,派生类可以包含与基类方法同名的方法。基类方法必须定义为 virtual。如果派生类中的方法前面没有 new 或 override 关键字,则编译器将发出警告,该方法将有如存在 new 关键字一样执行操作。如果派生类中的方法前面带有 new 关键字,则该方法被定义为独立于基类中的方法。如果派生类中的方法前面带有 override 关键字,则派生类的对象将调用该方法,而不是调用基类方法。可以从派生类中使用 base 关键字调用基类方法。override、virtual 和 new 关键字还可以用于属性、索引器和事件中。using System; using System.Collections.Generic; public class Car { public virtual void DescribeCar() 阅读全文>

发表于 @ 2008年07月18日 20:20:00|评论(loading...)|编辑|举报|收藏

2007年10月11日

转载 Java的访问控制

Java的访问控制阅读全文>

发表于 @ 2007年10月11日 20:40:00|评论(loading...)|编辑|举报|收藏

2007年10月04日

转载 一个笔试题的分析

笔试题阅读全文>

发表于 @ 2007年10月04日 23:56:00|评论(loading...)|编辑|举报|收藏

2007年09月29日

转载 分治法的绝妙应用-求bit翻转

分治法的绝妙应用阅读全文>

发表于 @ 2007年09月29日 21:39:00|评论(loading...)|编辑|举报|收藏

2007年09月11日

原创 How to Design a Good API and Why it Matters

How to Design a Good API and Why it Matters阅读全文>

发表于 @ 2007年09月11日 10:45:00|评论(loading...)|编辑|举报|收藏

2007年09月02日

原创 Exceptions In Java

Exceptions In Java阅读全文>

发表于 @ 2007年09月02日 15:42:00|评论(loading...)|编辑|举报|收藏

2007年08月24日

原创 Annotation优势何在

Annotation阅读全文>

发表于 @ 2007年08月24日 20:46:00|评论(loading...)|编辑|举报|收藏

Csdn Blog version 3.1a
Copyright © Jackiezhw