08 2016 档案

摘要:软件开发人员和程序员语录 1.A good programmer is someone who always looks both ways before crossing a one-way street. (Doug Linder) 好的程序员即使在过单行道时也总是会环顾两边。 2.Don’t 阅读全文
posted @ 2016-08-17 14:10 超越光速的蜗牛 阅读(2819) 评论(0) 推荐(0)
摘要:一、const基础 如果const关键字不涉及到指针,我们很好理解,下面是涉及到指针的情况: int b = 500; const int * a = &b; [1] int const *a = &b; [2] int* const a = &b; [3] const int* const a = 阅读全文
posted @ 2016-08-04 16:34 超越光速的蜗牛 阅读(1666) 评论(0) 推荐(0)
摘要:在linux下直接unzip xx.zip 时,总会遇到乱码问题,这是因为在windows上压缩的文件,是以windows默认编码中文来压缩文件。由于zip文件中没有声明其编码,所以linux上的unzip一般以默认编码解压,中文文件名会出现乱码。 解决的方法是: 1、解压时指定编码: unzip 阅读全文
posted @ 2016-08-02 16:04 超越光速的蜗牛 阅读(610) 评论(0) 推荐(0)