12 2017 档案
摘要:参考资料:官方文档 推荐【腾讯RapidJSON】学习笔记原理请参考以上资料构建jsonDocument doc;Document::AllocatorType &allocator=doc.GetAllocator(); //1.获取分配器doc.SetObjec...
阅读全文
摘要:这个是数据结构class Ctemp{public: char *s; ~Ctemp() { if(NULL!=s) free(s); s=NULL; }};错误复现void testFunct...
阅读全文
摘要:C++: string的大小写转换 转载 2014年12月02日 23:23:25 9806 将一个string转换成大写或者小写,是项目中经常需要做的事情,但string类里并没有提供这个方法。自己写个函数来实现,说起来挺简单,但做起来总让人觉得不方便。...
阅读全文
摘要:string转数字#include #include //使用stringstream需要引入这个头文件 //模板函数:将string类型变量转换为常用的数值类型(此方法具有普遍适用性) template Type CurveDat...
阅读全文