来自:洛谷P1000超级玛丽游戏 https://www.luogu.com.cn/problem/P1000
#include<iostream> int main() { const char* text = R"(Hello\t\n "World"!)"; std::cout <<text; }
R"(.....)";
以上结构来省略...中的转义字符
前提:C++11才支持,所以在g++中编译添加
g++ -std=c++11
写于2020/1/30。
【每日代码1】C++11 raw string literal
原文:https://www.cnblogs.com/jakefish/p/12241948.html