【发布时间】:2013-12-11 00:31:07
【问题描述】:
在C#中,我们可以用@定义一个复杂的字符串:
string str = @"This is the first line.\r\nThis is still the first line";
在 C++ 中怎么样?如果我们有这样的东西,我们不需要对所有特殊字符使用转换符号'\'。
【问题讨论】:
-
是的,原始字符串文字。 stackoverflow.com/questions/10501599/…
标签: c++