1#include <iostream>
2#include <string>
3
4std::string YourString = R"(
5 Your
6 multiline
7 string
8)";
9
10
11/* SYNTAX
12R"(
13
14")
15*/
16
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