金庆的专栏

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  423 随笔 :: 0 文章 :: 454 评论 :: 0 Trackbacks

12 2009 档案

     摘要: C++类定义中应该允许设置默认值目前C++的类成员初始化方式是成员初始化列表,在构造函数原型之后,以冒号分隔:A::A() : _n(0), _m(0) { ... } 成员初始化列表这种方式很容易忘记或遗漏某个成员的初始化。  阅读全文
posted @ 2009-12-12 11:20 金庆 阅读(1853) | 评论 (3)  编辑

     摘要: Programming Python, 3rd Edition 翻译

One of the more common tasks in the shell utilities domain is applying an operation to a set of files in a directorya "folder" in Windows-speak. By running a script on a batch of files, we can automate (that is, script) tasks we might have to otherwise run repeatedly by hand.

在shell应用领域,更常见的任务是,操作目录中的一组文件,按Windows的说法是“文件夹”。通过对一批文件运行脚本,我们可以将任务自动化(即脚本化),否则我们就必须以手工方式重复运行脚本。
  阅读全文
posted @ 2009-12-05 14:36 金庆 阅读(2988) | 评论 (0)  编辑