12 2014 档案

摘要:如果enter不终止输入, 试试按ctrl+j 阅读全文
posted @ 2014-12-13 22:32 helloweworld 阅读(1143) 评论(0) 推荐(0)
摘要:一. 字符串是否相等.建议用if [[ "${str1}" == "${str2}" ]]或if [ "${str1}" = "${str2}" ]注意: == left and right has space!str1=""str2=str3="hello"str4="world"# trueif... 阅读全文
posted @ 2014-12-13 19:20 helloweworld 阅读(510) 评论(0) 推荐(0)
摘要:这本书没什么新东西,大部分是effective c++或者其它书的摘抄,下面记录下我可能在编程时会忽略的几点。1. 结构体内变量布局:按类型大小从小到大声明。2. 在c++代码中引入大量c代码,注意下是否要加入extern "c".(c++重载,函数名会加标志)3. 用智能指针管理new对象。4... 阅读全文
posted @ 2014-12-08 09:33 helloweworld 阅读(522) 评论(0) 推荐(0)
摘要:# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted# See http://help.ubuntu.com/community/UpgradeNote... 阅读全文
posted @ 2014-12-02 22:59 helloweworld 阅读(286) 评论(0) 推荐(0)