Ray's playground

 
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 56 下一页

2010年11月10日

Data Abstraction(Chapter 4 of Thinking in C++)

摘要: CppLib.hCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1structStash2{3intsize;4intquantity;5intnext;6unsignedchar*storage;7voidinitialize(intsize);8v... 阅读全文

posted @ 2010-11-10 09:18 Ray Z 阅读(222) 评论(0) 推荐(0) 编辑

2010年11月7日

django Documentation(Getting started)

摘要: While you're editingsettings.py, take note of the INSTALLED_APPSsetting towards the bottom of the file. That variable holds the names of all Django applications that are activated in this Django insta... 阅读全文

posted @ 2010-11-07 18:26 Ray Z 阅读(207) 评论(0) 推荐(0) 编辑

2010年10月27日

The C in C++(Chapter 3 of Thinking in C++)

摘要: codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1#include<iostream>2#include<cstdlib>3usingnamespacestd;456voidPrintBinary(constunsign... 阅读全文

posted @ 2010-10-27 21:04 Ray Z 阅读(226) 评论(0) 推荐(0) 编辑

2010年10月25日

Making & Using Objects(Chapter 2 of Thinking in C++)

摘要: You can declare a variable or a function in many different places,but there must be only one definition in C and C++ (this issometimes called the ODR: one-definition rule). 阅读全文

posted @ 2010-10-25 22:51 Ray Z 阅读(138) 评论(0) 推荐(0) 编辑

Archiving(Chapter 18 of Programming in Objective-C 2.0)

摘要: To archive objects other than those listed, you must tell the system how to archive, orencode, your objects, and also how to unarchive, or decode, them.This is done by addingencodeWithCoder: and initW... 阅读全文

posted @ 2010-10-25 17:58 Ray Z 阅读(235) 评论(0) 推荐(0) 编辑

Copying Objects(Chapter 17 of Programming in Objective-C 2.0)

摘要: The Foundation classes implement methods known as copy and mutableCopy that youcan use to create a copy of an object.This is done by implementing a method in conformancewith the <NSCopying> prot... 阅读全文

posted @ 2010-10-25 17:06 Ray Z 阅读(259) 评论(0) 推荐(0) 编辑

Working with Files(Chapter 16 of Programming in Objective-C 2.0)

摘要: A file or directory is uniquely identified to NSFileManager using a pathname to the file.Apathname is an NSString object that can either be a relative or full pathname.A relativepathname is one that i... 阅读全文

posted @ 2010-10-25 12:25 Ray Z 阅读(222) 评论(0) 推荐(0) 编辑

2010年10月22日

Numbers, Strings, and Collections(Chapter 15 of Programming in Objective-C 2.0)

摘要: The line  @property (copy, nonatomic) NSString *name, *email;  lists the attributes copy and nonatomic for the properties.The copy attribute says to makea copy of the instance variable in its setter m... 阅读全文

posted @ 2010-10-22 09:42 Ray Z 阅读(221) 评论(0) 推荐(0) 编辑

2010年10月19日

TopCoder SquareDigits

摘要: SquareDigitsCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1#include<set>2usingnamespacestd;34classSquareDigits5{6private:7ints(intx);89public:... 阅读全文

posted @ 2010-10-19 21:28 Ray Z 阅读(213) 评论(0) 推荐(0) 编辑

The Preprocessor(Chapter 12 of Programming in Objective-C 2.0)

摘要: If you place a # in front of a parameter in a macro definition, the preprocessor creates aconstant C-style string out of the macro argument when the macro is invoked. For example,  the definition  #de... 阅读全文

posted @ 2010-10-19 20:45 Ray Z 阅读(190) 评论(0) 推荐(0) 编辑

上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 56 下一页

导航