Включение nlohmann/json в код C++ Visual Studio UbuntuC++

Программы на C++. Форум разработчиков
Anonymous
Включение nlohmann/json в код C++ Visual Studio Ubuntu

Сообщение Anonymous »

Я новичок в C++. Я хотел бы включить json из этой библиотеки https://github.com/nlohmann/json. Я скачал его, положил в свою папку
  • MyCPP

    main.cpp
  • json (папка nlohmann)

В моей основной папке .cpp

Код: Выделить всё

#include 
#include 
using json = nlohmann::json;
using namespace std;

int main(){
json j2 = {
{"pi", 3.141},
{"happy", true},
};

cout 

Подробнее здесь: [url]https://stackoverflow.com/questions/75531051/including-nlohmann-json-in-c-visual-studio-code-ubuntu[/url]

Вернуться в «C++»