首页 前端知识 c Nlohmann::JSON 下载教程

c Nlohmann::JSON 下载教程

2025-03-09 15:03:35 前端知识 前端哥 969 218 我要收藏

1:Nlohmann::JSON 下载

Github地址:https://github.com/nlohmann/json

  1. 可以自己下载代码编译
  2. 可以下载json.hpp像头文件那样包含使用

本次主要介绍下载json.hpp使用

  • 1:在浏览器打开上述github地址页面
  • 2:点击下方蓝色字体releases

  • 3:这个页面下有多个版本,找到自己想要下载的版本

  • 4:找到 Assets,点击箭头符号

  • 5:找到json.hpp,并点击它,就会自动开启下载

2:Nlohmann::JSON 项目使用

将json.hpp拷贝复制到需要使用的项目下

使用#include “json.hpp”包含便可使用

需要注意,json.hpp需要编译器支持c++11

转载请注明出处或者链接地址:https://www.qianduange.cn//article/23026.html
标签
评论
发布的文章

Autoware安装教程

2025-03-09 15:03:40

【C 】map详解

2025-03-09 15:03:37

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!