字符转义

基本类型 / 字符串

#include <iostream>
using namespace std;


// \t 插入制表符。
// \n 插入换行符。
// \r 插入回车符。
// \' 或 ' 插入单引号。
// \" 插入双引号。
// \\ 插入反斜杠字符。

string str = "She said \"Hello!\" to me.";
//str is "She said "Hello!" to me."

cout << "str: " << str;