摘要: 参考资料:官方文档 推荐【腾讯RapidJSON】学习笔记原理请参考以上资料构建jsonDocument doc;Document::AllocatorType &allocator=doc.GetAllocator(); //1.获取分配器doc.SetObjec... 阅读全文
posted @ 2017-12-29 18:32 机智的程序员小熊 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 这个是数据结构class Ctemp{public: char *s; ~Ctemp() { if(NULL!=s) free(s); s=NULL; }};错误复现void testFunct... 阅读全文
posted @ 2017-12-29 17:52 机智的程序员小熊 阅读(308) 评论(0) 推荐(0) 编辑
摘要: C++: string的大小写转换 转载 2014年12月02日 23:23:25 9806 将一个string转换成大写或者小写,是项目中经常需要做的事情,但string类里并没有提供这个方法。自己写个函数来实现,说起来挺简单,但做起来总让人觉得不方便。... 阅读全文
posted @ 2017-12-29 17:39 机智的程序员小熊 阅读(227) 评论(0) 推荐(0) 编辑