2017年12月13日

json的解析

摘要: 1 #include 2 #include 3 using namespace std; 4 5 /* jsoncpp support */ 6 #include "jsoncpp/json.h" // JSON构造与解析 7 8 9 // 从文件中读取字符串 10 string readfile (const char* filename) 11 { 12 ... 阅读全文

posted @ 2017-12-13 23:55 Doctor_uee 阅读(237) 评论(0) 推荐(0)

json文件的生成

摘要: 1//json常用于传输数据//前往json.org下载jsoncpp文件并添加到项目 #include 2 #include 3 using namespace std; 4 5 /* jsoncpp support */ 6 #include "jsoncpp/json.h" // JSON构造与解析 7 8 9 int main() 10 { 11 //... 阅读全文

posted @ 2017-12-13 23:51 Doctor_uee 阅读(282) 评论(0) 推荐(0)

导航