1.概要
c++11 新特性 原始字符串字面量
std::string str = R"(C:\Windows\System32\)";
2.代码
#include <iostream>
#include <vector>
int main()
{
std::string str = R"(C:\Windows\System32\)";
std::cout << str << std::endl;
std::cout << "\nHello World!\n";
}
3.结果
C:\Windows\System32\
Hello World!
博客介绍了C++11的新特性——原始字符串字面量。通过代码示例展示,如使用std::string str = R\(C:\\Windows\\System32\\)\; 来体现该特性,还提及了代码及结果相关内容。
3288

被折叠的 条评论
为什么被折叠?



