我有一个 std::string 文字,双引号内有双引号,双引号内。我需要使用什么格式才能使其工作?这是一个例子:
std:string http_command = "wget --post-data="user=bla password=bla query=select * from bla bla where username="" and name=bla\" http:://example.com"
以下部分失败username=""
多谢你们。
更新:修复了我的样本,我在那里多了一个双引号。