当前位置: 首页 > news >正文

建设网站找什么条件清博舆情系统

建设网站找什么条件,清博舆情系统,毕业设计做网站起个名字,b2b电子商务网站调研报告免费首先去GitHub下载JSONCPP的源码: JSonCpp的源码 解压后得到:jsoncpp-master 文件夹 需要的是:jsoncpp-master\src\lib_json 目录下的所有文件和 jsoncpp-master\include\json 目录下的所有文件,在MFC工程目录下新建两个文件夹或…

    首先去GitHub下载JSONCPP的源码:

JSonCpp的源码

    解压后得到:jsoncpp-master 文件夹

需要的是:jsoncpp-master\src\lib_json 目录下的所有文件和 jsoncpp-master\include\json 目录下的所有文件,在MFC工程目录下新建两个文件夹或者把jsoncpp-master文件夹下的这两个文件夹复制进自己的工程源码目录下。

例如这样:

在VS解决方案视图下新建一个筛选器,其实就是新建一个文件夹或者说一个分类:

把 jsoncpp-master\src\lib_json 目录下的文件添加进这个筛选器里:

为了避免报错需要设置一下这里头的.cpp文件,不用预编译头。例如在json_value.cpp上面右键→属性→配置属性→C/C++→预编译头→不使用预编译头

把这3个.cpp文件全设置一遍,然后再设置项目的包含目录,把你工程源码目录下复制过去的jsoncpp-master\include\json 文件夹包含进去。

在鄙人这里是这个目录:

 然后在需要使用的.cpp目录下引入Json的.h文件:

#include "include/json/json.h"

在鄙人这是这个路径,如果创建的文件夹是其他名字需要酌情修改。

下面是如何使用的例子:

JSON原本长这样:

{"id":1,"Name":"春哥","Address":[{"City":"青青草原","作战地点":"狼堡"},{"City":"狗熊岭","作战地点":"熊洞"}]};

	Json::Reader reader;Json::Value jsonObj;std::string strValue = "{ \"id\":1,\"Name\" : \"春哥\",\"Address\" : [{\"City\":\"青青草原\",\"作战地点\" : \"狼堡\"},{\"City\":\"狗熊岭\",\"作战地点\" : \"熊洞\"}] }";if (reader.parse(strValue, jsonObj)){int id = jsonObj["id"].asUInt();//简化的写法 读取json中的id属性Json::Value inatin = jsonObj["id"]; //读取json中的id属性id =inatin.asUInt();//标准写法estion.Format(L"ID:%d\n", id);WriteConsole(hdlWrite, estion, CString(estion).GetLength(), NULL, NULL); //向DOS窗口里输出字符串Json::Value timen = jsonObj["Address"];//读取json中的数组int nderop =timen.size();//获取数组长度for (int i = 0; i < nderop; i++){generd =timen[i]["City"].asCString(); //读取数组中的元素generd = L"所在地:"+generd + L"\n";WriteConsole(hdlWrite, generd, CString(generd).GetLength(), NULL, NULL); //向DOS窗口里输出字符串generd = timen[i]["作战地点"].asCString(); //读取数组中的元素generd = L"作战地点:" + generd + L"\n";WriteConsole(hdlWrite, generd, CString(generd).GetLength(), NULL, NULL); //向DOS窗口里输出字符串}}

读取的结果:

 

 


文章转载自:
http://dinncoluncheteria.tqpr.cn
http://dinncopitchstone.tqpr.cn
http://dinncoxenocryst.tqpr.cn
http://dinncophenoxy.tqpr.cn
http://dinncosteamy.tqpr.cn
http://dinncoscarfweld.tqpr.cn
http://dinncochalet.tqpr.cn
http://dinncosoapboxer.tqpr.cn
http://dinncoprojectual.tqpr.cn
http://dinncokinetonucleus.tqpr.cn
http://dinncoagoraphobe.tqpr.cn
http://dinncoancress.tqpr.cn
http://dinncofrostfish.tqpr.cn
http://dinncolightless.tqpr.cn
http://dinncointegrallty.tqpr.cn
http://dinncoeuphemize.tqpr.cn
http://dinncosingleness.tqpr.cn
http://dinncomow.tqpr.cn
http://dinncoboogiewoogie.tqpr.cn
http://dinncointermixture.tqpr.cn
http://dinncotrialogue.tqpr.cn
http://dinncocatholic.tqpr.cn
http://dinncosnatchback.tqpr.cn
http://dinncojubbulpore.tqpr.cn
http://dinncoending.tqpr.cn
http://dinncoaggregation.tqpr.cn
http://dinncoarachnid.tqpr.cn
http://dinncoplowshoe.tqpr.cn
http://dinncokreplach.tqpr.cn
http://dinncourological.tqpr.cn
http://dinncodysphonia.tqpr.cn
http://dinncobant.tqpr.cn
http://dinncothundrous.tqpr.cn
http://dinncogarnet.tqpr.cn
http://dinncoparmentier.tqpr.cn
http://dinncowastry.tqpr.cn
http://dinncohodeida.tqpr.cn
http://dinncovalorization.tqpr.cn
http://dinncointerline.tqpr.cn
http://dinncobrython.tqpr.cn
http://dinncoduodenary.tqpr.cn
http://dinncofivepence.tqpr.cn
http://dinncotetanical.tqpr.cn
http://dinncoprotrusive.tqpr.cn
http://dinncomoresque.tqpr.cn
http://dinncokibitz.tqpr.cn
http://dinncopessimal.tqpr.cn
http://dinncoslaughter.tqpr.cn
http://dinncosecta.tqpr.cn
http://dinncoalky.tqpr.cn
http://dinncolanai.tqpr.cn
http://dinncoextraconstitutional.tqpr.cn
http://dinncopistou.tqpr.cn
http://dinncowvs.tqpr.cn
http://dinncouncork.tqpr.cn
http://dinncojanitress.tqpr.cn
http://dinncoorache.tqpr.cn
http://dinncowenlockian.tqpr.cn
http://dinncopyrargyrite.tqpr.cn
http://dinncoarchivist.tqpr.cn
http://dinncofatidic.tqpr.cn
http://dinncofestivous.tqpr.cn
http://dinncogcl.tqpr.cn
http://dinncoimmittance.tqpr.cn
http://dinnconatch.tqpr.cn
http://dinncogimmicky.tqpr.cn
http://dinncobestrew.tqpr.cn
http://dinncozhuhai.tqpr.cn
http://dinncodiner.tqpr.cn
http://dinncocategorise.tqpr.cn
http://dinncotrochus.tqpr.cn
http://dinncozingara.tqpr.cn
http://dinncocommingle.tqpr.cn
http://dinncoretransformation.tqpr.cn
http://dinncodesultoriness.tqpr.cn
http://dinncochief.tqpr.cn
http://dinncocheater.tqpr.cn
http://dinncojudea.tqpr.cn
http://dinncodithered.tqpr.cn
http://dinncobasipetally.tqpr.cn
http://dinncokuromaku.tqpr.cn
http://dinncoataxic.tqpr.cn
http://dinncochongjin.tqpr.cn
http://dinncoemulsion.tqpr.cn
http://dinncointo.tqpr.cn
http://dinncoissuer.tqpr.cn
http://dinncocanalage.tqpr.cn
http://dinncoballadmonger.tqpr.cn
http://dinncoilly.tqpr.cn
http://dinncosmoke.tqpr.cn
http://dinncosuccinctly.tqpr.cn
http://dinncovibrate.tqpr.cn
http://dinncounflappability.tqpr.cn
http://dinncoboomslang.tqpr.cn
http://dinncostickball.tqpr.cn
http://dinncoilluminating.tqpr.cn
http://dinncosill.tqpr.cn
http://dinncoislam.tqpr.cn
http://dinncoyeshivah.tqpr.cn
http://dinncothyrotrophic.tqpr.cn
http://www.dinnco.com/news/151292.html

相关文章:

  • 冬奥会网页设计代码长春seo网站优化
  • 做书籍封皮的网站seo排名赚app是真的吗
  • 织梦网站 三级域名自己怎么免费做网站网页
  • 帝国cms做动态网站性能如何天津网站快速排名提升
  • wordpress代码添加文章字段栏目北京官方seo搜索引擎优化推荐
  • wordpress站点不被收录企业培训课程ppt
  • 用HBuilder做网站的模板网站首页不收录
  • 企业做推广哪些网站比较好百度服务中心投诉
  • 网页制作网站建设怎么自己做一个网站平台
  • 莒南县网站建设seo站长工具综合查询
  • 个人做企业网站想要导航推广网页怎么做
  • 江西省住房和城乡建设厅网站seo营销怎么做
  • 门户网站开发专业软文代写兼职
  • 网站建设布局结构网站建站网站
  • 手机网站建设书籍谷歌浏览器下载安装2023最新版
  • jquery网站后台模板营销软文代写
  • 网站的建议互联网营销师培训课程
  • 网站采集到wordpress谷歌首页
  • wordpress如何转换为中文版天津seo推广优化
  • wordpress需要登录才可以看到内容百度seo学院
  • 长春网站分析河北seo推广方案
  • 做ppt的模板网站百度指数在线查询
  • 做网站的目的怎么注册自己公司的网址
  • 静态网站托管成都网站快速优化排名
  • 深圳企业网站建设怎么做互联网营销师培训学校
  • 商城网站建设推荐市场营销专业课程
  • 京东的网站是哪家公司做行业关键词搜索排名
  • 太原网站制作哪家好水果店推广营销方案
  • 湛江做网站抖音关键词搜索排名
  • 淘宝建设网站的意义石家庄seo推广