C++ string 包含双引号
时间: 2023-10-01 08:08:43 浏览: 183
C字符串可以包含双引号。在C中,双引号被用作字符串的引号字符。您可以将双引号包含在C字符串中,方法是在双引号前面加上转义字符\。例如,如果您想在字符串中包含双引号,可以使用\"。这样,编译器会将\"解释为一个双引号字符,而不是字符串的结束符。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [c++string 加引号_Shell 引号嵌套](https://blog.csdn.net/weixin_39517400/article/details/110129780)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [c++string 加引号_我的C笔记](https://blog.csdn.net/weixin_39825045/article/details/110203362)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文