01 2014 档案

摘要:The pltask.cfg file contain run_EOD script , after you change the pltask.cfg file, we should reset the module pltask. 阅读全文
posted @ 2014-01-20 17:50 wzheng 阅读(94) 评论(0) 推荐(0) 编辑
摘要:1、map简介map是一类关联式容器。它的特点是增加和删除节点对迭代器的影响很小,除了那个操作节点,对其他的节点都没有什么影响。对于迭代器来说,可以修改实值,而不能修改key。2、map的功能 自动建立Key - value的对应。key 和 value可以是任意你需要的类型。 根据key值快速查找记录,查找的复杂度基本是Log(N),如果有1000个记录,最多查找10次,1,000,000个记录,最多查找20次。 快速插入Key - Value 记录。 快速删除记录 根据Key 修改value记录。 遍历所有记录。 3、使用map 使用map得包含map类所在的头文件#include //. 阅读全文
posted @ 2014-01-07 17:52 wzheng 阅读(396) 评论(0) 推荐(0) 编辑
摘要:const char *, char const *,char * const非常相识很容易记混淆,那么该如何区别他们呢?Bjarne在他的The C++ Programming Language里面给出了一个助记的方法:把一个声明从右向左读。char * const cp;(*读成 pointer to)cp is a const pointer to char;const char * cp;cp is a pointe to const char;C++标准规定,const关键字放在类型或变量名之前是等价的。const int n =5 ;// same as belwint const 阅读全文
posted @ 2014-01-06 16:56 wzheng 阅读(264) 评论(0) 推荐(0) 编辑
摘要:今天platform遇到了这个segmentation fault的常见内存错误,运行所有的平台命令时都会出现这个错误,感觉根本无法下手啊。上网查询说这种内存错误会产生一个core file, 然后使用gdb调试core file就可以看到内存错误是在哪儿发生的,虽然产生了core file,但使用gdb调试的时候发现是由于一个静态库引起的,所以问题最后也没有解决,客户那边卸载了fts.就core file在网上发现几篇不错的文章,在下面列出他们的链接:http://blog.sina.com.cn/s/blog_64b11b3801012g46.htmlhttp://blog.chinaun 阅读全文
posted @ 2014-01-03 14:13 wzheng 阅读(461) 评论(0) 推荐(0) 编辑