c++一条字符串有多个引号要转义

string str = "{\"id\":\"9527\",\"name\":\"zxx}";

可以改成

string str = R"({"id":"9527","name":"zxx"})";

posted on 2022-06-18 08:20  M1911  阅读(263)  评论(0编辑  收藏  举报