jeans chen
we've got them by the balls
摘要: 将某些东西声明为const可以帮助编译器检测出错误用法,const编译器强制实施bitwise constness,但是你code的时候应该使用“概念上的常量性”当const和non-const成员函数有着实质等价的实现时,令non-const版本调用const版本可以避免代码重复。0)迭代器类似T*指针,声明迭代器为const就像声明指针为const一样。(即声明一个T* const指针)如果你希望迭代器所指的不能被改动,需要的是const_iteratorvector::iterator iter = vec.begin();//iter作用像T* const*iter = 10;//没问 阅读全文
posted @ 2013-07-08 17:35 jeans chen 阅读(234) 评论(0) 推荐(0) 编辑
摘要: linux man指令问题2010-1-13 13:33 提问者: 钟离伊轩 man命令执行时,可加入数值,来限制帮助级别。这句话对不对啊????我记得man page是分章节的。。好像可以加数字指定章节这么一说。不太确定,求助~~~我来帮他解答2010-1-13 14:53满意回答这句话是对的。Linux的man很强大,该手册分成很多section,使用man时可以指定不同的section来浏览,各个section意义如下: 1 - commands2 - system calls3 - library calls4 - special files5 - file formats and c 阅读全文
posted @ 2013-07-08 11:25 jeans chen 阅读(245) 评论(0) 推荐(0) 编辑