Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要从 rapidjson 文档(参考)中获取价值。
下面是代码:
Document *jsonDocument; Value& data = jsonDocument["data"];
任何帮助表示赞赏。
这里的问题是 jsonDocument 是一个指向 Document 的指针。要调用operator[],您可以:
operator[]
Value& data = (*jsonDocument)["data"]