摘要: 什么是 self ? 它是类实例自身的引用。其他语言通常使用一个名为 this 的标识符 --《Python核心编程》如何定义类: class ClassName(base_class[es]): (1) "optional documentation s... 阅读全文
posted @ 2014-05-20 22:38 Azor 阅读(289) 评论(0) 推荐(0) 编辑
摘要: //using rit.base() function#include std::string test("hello");std::string::reverse_iterator rit = test.rbgin();std::string::iterator it(rit.base()); 阅读全文
posted @ 2014-05-20 22:08 Azor 阅读(146) 评论(0) 推荐(0) 编辑