摘要: 该解析器在教程:https://zhuanlan.zhihu.com/json-tutorial下完成,非常感谢Milo大神的指导!才回忆起来,原来我看C++ primer 5th 的时候那个审校就是本人! 值得理解学习的知识有如下: 1.重构的观念 重构就是在不改变软件系统外部行为的前提下,改善它 阅读全文
posted @ 2020-04-27 21:26 Royzzzzz 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 1 #include"pch.h" 2 3 /*#ifdef WIN32 4 #define _CRTDBG_MAP_ALLOC 5 #include <stdlib.h> 6 #include <crtdbg.h> 7 #endif*/ 8 9 #include <stdio.h> 10 #inc 阅读全文
posted @ 2020-04-27 20:35 Royzzzzz 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1 #include"pch.h" 2 /*#ifdef WIN32 3 #define _CRTDBG_MAP_ALLOC 4 #include <stdlib.h> 5 #include <crtdbg.h> 6 #endif*/ 7 8 #include "leptjson.h" 9 #inc 阅读全文
posted @ 2020-04-27 20:32 Royzzzzz 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1 #ifndef LEPTJSON_H__ 2 #define LEPTJSON_H__ 3 //json有六种数据类型:NULL(空),bool(true和false),数字类型,字符串,数组,对象 4 typedef enum { LEPT_NULL, LEPT_FALSE, LEPT_TRU 阅读全文
posted @ 2020-04-27 20:31 Royzzzzz 阅读(235) 评论(0) 推荐(0) 编辑