
语法基础
且走且珍惜
简书博客:https://www.jianshu.com/u/70a843840ce8
展开
-
string 和 char *的一点笔记
string——substr(int index1,int index2),取string子串。c_str,const,不可修改,这将非常不方便。 String——的适配器。声明:string::iterator it;it =s.begin(); it = s.end();但输出只能用 cout String 与 char*的转换。不能有 c =(char*) s,只能用str原创 2012-10-14 07:54:48 · 685 阅读 · 0 评论 -
内存泄露监测工具
内存泄露监测工具 :PurifyBounds CheckerCoverity (basically its a code analyzer but, it will catch memory leak in static )Glow CodedmallocccmallocNJAMDYAMDValgrindmpatrolInsure++翻译 2012-11-10 10:45:23 · 908 阅读 · 0 评论