[1] Daily Code C ++ 11 raw string literal

From: Los Valley P1000 Super Mario game  https://www.luogu.com.cn/problem/P1000

#include<iostream>
int main()
{
  const char* text = R"(Hello\t\n
  "World"!)";
  std::cout <<text;
}
R"(.....)";

The above structure is omitted in the escape character ...

Premise: C ++ 11 is supported, so the compiler added in g ++

g++ -std=c++11 

 

Written in 2020/1/30.

Guess you like

Origin www.cnblogs.com/jakefish/p/12241948.html