上一页 1 ··· 7 8 9 10 11

2013年7月29日

setf

摘要: independent flagsboolalpharead/write bool elements as alphabetic strings (true and false).showbasewrite integral values preceded by their corresponding numeric base prefix.showpointwrite floating-point values including always the decimal point.showposwrite non-negative numerical values preceded by a 阅读全文

posted @ 2013-07-29 13:01 shoutcharter 阅读(159) 评论(0) 推荐(0) 编辑

关于里氏替换原则

摘要: you can not rewrite the function ,which have beenrealized by base class! 阅读全文

posted @ 2013-07-29 10:49 shoutcharter 阅读(118) 评论(0) 推荐(0) 编辑

关于抽象类

摘要: 抽象类就是强制实现纯虚函数的类。不能被实例化。这样就可以保证里氏替换原则的实现:强制实现纯虚函数,子类就可以完全替换父类,因为父类只有名字,没有动作,可替换性就很大。 阅读全文

posted @ 2013-07-29 10:47 shoutcharter 阅读(102) 评论(0) 推荐(0) 编辑

2013年7月25日

Linux下的管道命令有这些:

摘要: Linux下的管道命令有这些:选取命令:cat grep排序命令:sort wc uniq双向重定向:tee字符转换命令: tr, col, join, paste, expand切割命令:split参数代号:xargs 阅读全文

posted @ 2013-07-25 15:08 shoutcharter 阅读(201) 评论(0) 推荐(0) 编辑

管道符

摘要: 利用Linux所提供的管道符“|”将两个命令隔开,管道符左边命令的输出就会作为管道符右边命令的输入。连续使用管道意味着第一个命令的输出会作为第二个命令的输入,第二个命令的输出又会作为第三个命令的输入,依此类推。所以查找的时候可以这样写:grep -rl “aaa” * | grep -v “bbb”这样右边的命令就可以从前面的结果中筛选了。然后还有 generate 命令,因为生成文件的命令格式是这样的:generate 文件名不过如果直接使用 generate grep -rl “aaa” * | grep -v “bbb” 的话会出错,因为命令会从左向右执行,这条命令就会把grep作为一个 阅读全文

posted @ 2013-07-25 15:06 shoutcharter 阅读(829) 评论(0) 推荐(0) 编辑

grep

摘要: 扩展grep(grep -E 或者 egrep):使用扩展grep的主要好处是增加了额外的正则表达式元字符集。打印所有包含NW或EA的行。如果不是使用egrep,而是grep,将不会有结果查出。 # egrep 'NW|EA' testfile northwest NW Charles Main 3.0 .98 3 34 eastern EA TB Savage 4.4 .84 5 20对于标准grep,如果在扩展元字符前面加\,... 阅读全文

posted @ 2013-07-25 15:00 shoutcharter 阅读(133) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11

导航