摘要: 对这里实现String中作者没写的四个函数// 这两个是成员函数mString&operator+=(constmString&);mString&operator+=(constchar*);// 这两个是非成员函数mStringoperator+(constmString&,constmString&);mStringoperator+(constmString&,constchar*);的具体实现不是很有想法。问题是:1、 前两个类成员函数返回的是引用,而这里String的具体实现是用的char,根据作者写的代码,自己感觉这里肯定会修改原S 阅读全文
posted @ 2012-04-19 20:58 ziyoudefeng 阅读(530) 评论(6) 推荐(0) 编辑
摘要: 1 安装和初始化 配置全局用户名和电子邮件地址prompt> git config --global user.name "Your name"prompt> git config --global user.email "you@example.com" 为特定版本库配置用户名和电子邮件地址prompt> cd /path/to/repoprompt> git config user.name "Your name"prompt> git config user.email "you@exam 阅读全文
posted @ 2012-04-19 09:44 ziyoudefeng 阅读(320) 评论(0) 推荐(0) 编辑