The original string representation

The so-called original string that is their own, quote, and represented all without the slash character \ to escape. C ++ uses R "(a string)" to identify the original string:

cout << R"(I don't have to use '\' to print "\n" in the screen.)" << endl;

The code will display the following:

I don't have to use '\' to print "\n" in the screen.

 

Guess you like

Origin www.cnblogs.com/sunyazhou/p/11322026.html