03 2011 档案

摘要:verb. Upper case in First character : Select , Group , Having , Create , Drop , Insert , Delete ...prep. lower case in all characters : where , as , and , or , by ...System Function. Upper case in all characters : GETDATE , YEAR , COUNT ... 阅读全文
posted @ 2011-03-26 10:54 walfud 阅读(93) 评论(0) 推荐(0)
摘要:The range of both int and float depends onthe machine you are using;(p.9) If an arithmetic operator has integer operands, an integer operation is performed. If an arithmetic operator has one floating-point operand nad one integer operand, however, the integer will be converted to floating point bef. 阅读全文
posted @ 2011-03-24 17:14 walfud 阅读(726) 评论(0) 推荐(0)
摘要:异或操作是个伟大的发现. 它不丢失任何一个操作数.     首先, a^b的结果中以一种组合方式保存了a与b的值.     通过 (a^b)^a即可从组合中还原出b原来的值. 同理, 再次从组合a中还原出b, 将结果赋给a即可实现互换. 阅读全文
posted @ 2011-03-23 20:34 walfud 阅读(328) 评论(2) 推荐(2)
摘要:size_t Count(int x){ size_t uiCount =0; while (0 != x) { ++uiCount ; x &= x-1; //x &= x-1 ; deletes the rightmost 1-bit in x } return uiCount ;}每次 x - 1 都会导致 x 的二进制表示里最右侧的 1 与 x 原来的二进制表示 相反.x = 10010110x - 1 = 10010101x &= x-1 -> 10010100 // 至此, 最右侧的 1-bit 被delete掉了. 如此循环往复, 统计所有 ... 阅读全文
posted @ 2011-03-23 20:32 walfud 阅读(130) 评论(0) 推荐(0)
摘要:Multi-Statement Macros It's common to write a macro that consists of multiple statements. For example, a timing macro: #define TIME(name, lastTimeVariable) NSTimeInterval now = [[NSProcessInfo processInfo] systemUptime];if(lastTimeVariable) NSLog(@"%s: %f seconds", name, now - lastTime 阅读全文
posted @ 2011-03-18 12:55 walfud 阅读(1457) 评论(0) 推荐(0)
摘要:2. Release和Debug有什么不同Release版称为发行版,Debug版称为调试版。Debug中可以单步执行、跟踪等功能,但生成的可执行文件比较大,代码运行速度较慢。Release版运行速度较快,可执行文件较小,但在其编译条件下无法执行调试功能。Release的exe文件链接的是标准的MFC DLL(Use MFC in a shared or static dll)。这些DLL在安装Windows的时候,已经配置,所以这些程序能够在没有安装Visual C++ 6.0的机器上运行。而Debug版本的exe链接了调试版本的MFC DLL文件,在没有安装Visual C++6.0的机器 阅读全文
posted @ 2011-03-17 21:48 walfud 阅读(301) 评论(0) 推荐(0)
摘要:[汇编语言]http://www.asmcommunity.net/http://www.masm32.com/ [Win32 Asm]http://www.cs.cmu.edu/~ralf/files.html [x86中断列表]http://www.nasm.us/ [NASM]http://www.winasm.net/ [Winasm汇编编辑器]http://x86asm.net/index.htmlhttp://flatassembler.net/ [FASM]http://www.wasm.ru/ [Windows驱动开发]http://www.osronline.com [Win 阅读全文
posted @ 2011-03-17 21:47 walfud 阅读(285) 评论(0) 推荐(1)
摘要:You'd know it before you need ... 阅读全文
posted @ 2011-03-17 21:46 walfud 阅读(425) 评论(0) 推荐(0)