1//EXAMPLE
2std::string sRaw = R"(aaa\ttt %)"; // aaa/ttt %
3std::string sNonRaw = "aaa\ttt %"; // aaa tt %
4std::cout << sRaw << "\n";
5std::cout << sNonRaw << "\n";
6
7//SYNTAX
8// R"(<string-with-raw-values>)"
9// R"(...)"
1#include <iostream>
2
3
4int main() {
5
6
7 //Display in Multiline using escape character /n
8 const char* example2 = "Line1\n"
9 "Line2\n"
10 "Line3\n"
11 "Line4\n"
12 ;
13 std::cout << example2 << std::endl;
14 std::cout << "===================================" << std::endl;
15 // display in multiline using Raw
16 const char* example = R"(Line1
17Line2
18Line3
19Line4
20)";//no need to use escape character /n
21 std::cout << example << std::endl;
22
23 std::cin.get();
24}
25