C ++ 11 original string literal

C ++ 11 characters for transfer (e.g. \ n, \ t, etc.) is added transfer string literals (raw string literals) function,

This format requires string R opened, and the contents of the string to be placed in one pair of parentheses, are often used to store directory string, for example:

cout << R"(c:\files\)“;

That result output string: "c: \ files \"

Guess you like

Origin www.cnblogs.com/maintain20111221/p/12329467.html