相关疑难解决方法(0)

C++多行字符串文字

有什么方法可以在C++中使用多行纯文本,常量文字,还有Perl?也许有一些#include文件的解析技巧?我想不出一个,但男孩,那会很好.我知道它将在C++ 0x中.

c++ string-literals

383
推荐指数
9
解决办法
29万
查看次数

字符串文字C++?

我需要在C++中执行以下C#代码(如果可能的话).我必须使用很多引人注目的引号和其他内容来构造一个长字符串.

const String _literal = @"I can use "quotes" inside here";
Run Code Online (Sandbox Code Playgroud)

c++ string

14
推荐指数
3
解决办法
3919
查看次数

c#(或c ++ 11)中是否有类似于c#的@ like?

在C#中,我们可以用@定义一个复杂的字符串:

string str = @"This is the first line.\r\nThis is still the first line";
Run Code Online (Sandbox Code Playgroud)

在C++中怎么样?如果我们有这样的东西,我们不需要为所有特殊字符使用转换符号'\'.

c++

5
推荐指数
1
解决办法
124
查看次数

标签 统计

c++ ×3

string ×1

string-literals ×1