键盘上的舞者

My Email: marckywu@gmail.com
随笔 - 19, 文章 - 0, 评论 - 3, 引用 - 0
数据加载中……

07 2009 档案

一个Python文本处理程序
     摘要: 文本内容为一行一个单词,如下:
some
are
born
great  阅读全文

posted @ 2009-07-22 16:33 Marcky 阅读(612) | 评论 (0)  编辑

strip(), lstrip(), rstrip()的使用
     摘要: 在python中,
1、strip()用来在字符串的首尾删除某个字符。  阅读全文

posted @ 2009-07-21 23:26 Marcky 阅读(2744) | 评论 (0)  编辑

复制构造函数之浅复制与深复制
     摘要: 复制构造函数的函数名为类的名字,无返回值,和构造函数的区别就在于形参的不同。复制构造函数的形参为同类类型的引用,并且通常限定为const的引用,如Person类的复制构造函数的声明为:  阅读全文

posted @ 2009-07-13 01:56 Marcky 阅读(506) | 评论 (0)  编辑

TCP服务的可靠性
     摘要: TCP是一种面向连接的字节流服务,也就是说需要依靠TCP来通信的双方必须事先建立连接,并且只能是一对一的连接,就像打电话一样。  阅读全文

posted @ 2009-07-12 09:43 Marcky 阅读(529) | 评论 (0)  编辑

构造函数初始化列表
     摘要: 我们定义一个如下的Person类:
class Person {
public:
Person() { } //default constructor function
Person(string name, string phone, string addr)  阅读全文

posted @ 2009-07-11 17:47 Marcky 阅读(1133) | 评论 (0)  编辑

const形参的函数重载
     摘要: 《C++ primer》中提到“仅当形参是引用或指针的时候,形参是否为const才对重载有影响。”  阅读全文

posted @ 2009-07-11 15:09 Marcky 阅读(1169) | 评论 (3)  编辑

关于多态的有趣理解
     摘要: 在CSDN学生大本营看到如下有趣的理解多态...呵呵。。。  阅读全文

posted @ 2009-07-05 22:12 Marcky 阅读(221) | 评论 (0)  编辑

NULL, 0, \0 ,nul的区别(转载)
     摘要: NULL is a macro defined in several standard headers, 0 is an integer constant, '\0' is a character constant, and nul is the name of the character constant. All of these are not interchangeable:  阅读全文

posted @ 2009-07-01 23:10 Marcky 阅读(319) | 评论 (0)  编辑