Ray's playground

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

2010年11月16日

Constants(Chapter 8 of Thinking in C++)

摘要: To put everything out in the open, you should use themutable keyword in the class declaration to specify that aparticular data member may be changed inside a const object.    The syntax of volatile is... 阅读全文

posted @ 2010-11-16 21:02 Ray Z 阅读(163) 评论(0) 推荐(0) 编辑

2010年11月15日

Python中的Dict对象(Python 源码剖析第五章)

摘要: PyDictEntryCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1typedefstruct{2/*Cachedhashcodeofme_key.NotethathashcodesareClongs.3*WehavetousePy_ssize_t... 阅读全文

posted @ 2010-11-15 21:55 Ray Z 阅读(582) 评论(0) 推荐(0) 编辑

2010年11月14日

算法入门(算法导论第二章)

摘要: Insertion SortCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1voidInsertionSort(int*array,intsize)2{3for(inti=1;i<size;i++)4{5intj=i;6intcurrent=a... 阅读全文

posted @ 2010-11-14 21:39 Ray Z 阅读(309) 评论(0) 推荐(0) 编辑

2010年11月13日

Python中的List对象(Python 源码剖析第四章)

摘要: PyListObjectCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1typedefstruct{2PyObject_VAR_HEAD3/*Vectorofpointerstolistelements.list[0]isob_item[0],etc... 阅读全文

posted @ 2010-11-13 21:18 Ray Z 阅读(520) 评论(0) 推荐(0) 编辑

2010年11月12日

Function Overloading & Default Arguments(Chapter 7 of Thinking in C++)

摘要: Mem.hCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1#ifndefMEM_H2#defineMEM_H3typedefunsignedcharbyte;45classMem6{7byte*mem;8intsize;9voidensureMinS... 阅读全文

posted @ 2010-11-12 22:00 Ray Z 阅读(198) 评论(0) 推荐(0) 编辑

Python中的字符串对象(Python 源码剖析第三章)

摘要: PyStringObjectCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1typedefstruct{2PyObject_VAR_HEAD3longob_shash;4intob_sstate;5charob_sval[1];67/*Invaria... 阅读全文

posted @ 2010-11-12 20:12 Ray Z 阅读(281) 评论(0) 推荐(0) 编辑

2010年11月11日

Initialization & Cleanup(Chapter 6 of Thinking in C++)

摘要: The default constructor is so important that if (and only if) there areno constructors for a structure (struct or class), the compiler willautomatically create one for you. 阅读全文

posted @ 2010-11-11 23:45 Ray Z 阅读(155) 评论(0) 推荐(0) 编辑

Python中的整数对象(Python 源码剖析第二章)

摘要: [代码]PyInt_TypeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1PyTypeObjectPyInt_Type={2PyVarObject_HEAD_INIT(&PyType_Type,0)3"int",4sizeof(PyIntO... 阅读全文

posted @ 2010-11-11 21:43 Ray Z 阅读(348) 评论(0) 推荐(0) 编辑

Python内建对象(Python 源码剖析第一章)

摘要: PyObjectCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1#definePyObject_HEAD\2_PyObject_HEAD_EXTRA\3Py_ssize_tob_refcnt;\4struct_typeobject*ob_type;5... 阅读全文

posted @ 2010-11-11 08:57 Ray Z 阅读(465) 评论(0) 推荐(0) 编辑

2010年11月10日

Hiding the Implementation(Chapter 5 of Thinking in C++)

摘要: NestFriend.cppCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1#include<iostream>2#include<cstring>3usingnamespacestd;4constintsz=20;56str... 阅读全文

posted @ 2010-11-10 20:38 Ray Z 阅读(247) 评论(0) 推荐(0) 编辑

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

导航