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)

2017年12月6日

xml用于保存数据(Qt5)实例

摘要: 1 //Settings.h 2 #ifndef _SETTINGS_H 3 #define _SETTINGS_H 4 5 class Settings 6 { 7 public: 8 Settings(); 9 10 int load(); 11 int save(); 12 13 public: 14 int period; 15 ... 阅读全文

posted @ 2017-12-06 00:06 Doctor_uee 阅读(1704) 评论(0) 推荐(0)

2017年12月5日

解析xml

摘要: 1 2 3 4 5 afanihao.cn 6 7 8 9 10 shaofa 11 12 200501 13 14 15 16 1 #include 2 #include "../tinyxml/tinyxml.h" 3 4 int main() 5 { 6 // 解析xml 7 TiXmlDocument xm... 阅读全文

posted @ 2017-12-05 12:41 Doctor_uee 阅读(176) 评论(0) 推荐(0)

2017年12月4日

xml的c++生成

摘要: 1 #include 2 #include 3 using namespace std; 4 //1.下载tinyxml并添加到头文件 5 //2.由父节点LinkEndChild来挂接子节点 6 #include "../tinyxml/tinyxml.h" //头文件路径 7 8 int test1() 9 { 10 TiXmlDocument xml_do... 阅读全文

posted @ 2017-12-04 23:58 Doctor_uee 阅读(812) 评论(0) 推荐(0)

xml入门语法实例

摘要: 1 //声明(版本号)(文字编码) 2 //根节点 3 myyuming //元素 4 8080 5 liee 6 123456789 //兄弟元素 7 987654321 //兄弟元素 8 //元素附上属性 9 2017/12/04 10 11 12 //优点:可读性强 13 //缺点:解析费时间,占用空间大,效率低 14 //通常用于传输数据 15 //元素... 阅读全文

posted @ 2017-12-04 12:47 Doctor_uee 阅读(126) 评论(0) 推荐(0)

2017年12月3日

检测重量开关门

摘要: 1 // Fill out your copyright notice in the Description page of Project Settings. 2 //OpenDoor.h 3 #pragma once 4 #include"CoreMinimal.h" 5 #include "Components/ActorComponent.h" 6 #include"Game... 阅读全文

posted @ 2017-12-03 10:53 Doctor_uee 阅读(704) 评论(0) 推荐(0)

导航