C++多行文件


#include <iostream>
#include <string>

int main() {
    std::string jsonStr = R"delimiter(
        {
          "name": "James",
          "nickname": "good boy"
        }
        )delimiter";
    std::cout << jsonStr << std::endl;
}

----------------

{
  "name": "James",
  "nickname": "good boy"
}

--------------------------------

posted @ 2023-01-26 10:18  ParamousGIS  阅读(22)  评论(0编辑  收藏  举报