#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
#include <string>
#include <vector>
#include <map>


void mytest()
{
    /*
    原生字符串字面值(raw string literal)使用户书写的字符串“所见即所得”。
    C++11中原生字符串的声明相当简单,只需在字符串前加入前缀,即字母R,并在引号中使用括号左右标识,就可以声明该字符串字面量为原生字符串了。
    */
    std::cout << R"(hello,\n
        world)" << std::endl;

    return;
}


int main()
{
    mytest();

    system("pause");
    return 0;
}

 

相关文章:

  • 2022-12-23
  • 2021-08-19
  • 2021-07-31
  • 2021-08-03
  • 2022-12-23
  • 2021-11-08
猜你喜欢
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案