Ray's playground

 

2011年2月22日

Item 33: Use the new Modifier Only to React to Base Class Updates(Effective C#)

摘要: codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Linq;4usingSystem.Text;56namespaceEffectiveCSharpItem337{8classBase9{10publicvoidMagicMethod()11{12Console.WriteLine("magicmethodfr 阅读全文

posted @ 2011-02-22 21:43 Ray Z 阅读(259) 评论(0) 推荐(0) 编辑

STL Containers & Iterators part2(Chapter 4 of Thinking in C++ Vol 2)

摘要: The vector is intentionally made to look like a souped-up array, since it has array-styleindexing but also can expand dynamically. vector is so fundamentally useful that it wasintroduced in a very primitive way early in this book, and used quite regularly in previousexamples. This section will give. 阅读全文

posted @ 2011-02-22 17:22 Ray Z 阅读(262) 评论(0) 推荐(0) 编辑

User Defaults(Chapter 13 of Cocoa Programming for Mac OS X)

摘要: Every application comes with a set of defaults from the factory. When a user edits his or her defaults, only the differences between the user's wishes and the factory defaults are stored in the user's defaults database. Thus, every time the application starts up, you need to remind it of the 阅读全文

posted @ 2011-02-22 13:27 Ray Z 阅读(156) 评论(0) 推荐(0) 编辑

导航