2007年4月30日

C++代码静态分析工具-Prefast

摘要: Prefast是一种代码分析工具,它能够帮助你找到编译器不能找到的错误或者缺陷。Prefast首次被微软集成到Visual Studio 2005 Team Suite中去,使用起来非常方便vc6中使用Prefast的方法: prefast是附带在微软的DDK中的 In VC6 project 1. Install Windows IFS Kit and DDK package 2. Execut... 阅读全文

posted @ 2007-04-30 23:13 cy163 阅读(1927) 评论(2) 推荐(0) 编辑

循环中删除map元素的写法; 在C++环境下,实现一行一行地读入文本文档

摘要: 14. 循环中删除map元素的写法 // for vector, deque template inline void vector_erase(Container & c, T const& t) { c.erase(std::remove(c.begin(), c.end(), t), c.end()); } template inline void vector_erase_if(Con... 阅读全文

posted @ 2007-04-30 22:55 cy163 阅读(3662) 评论(0) 推荐(1) 编辑

导航