C++ String Create raw or cooked string

Description

C++ String Create raw or cooked string

#include <iostream> 

using namespace std; 

int main() //from ww  w . j av  a  2  s.c o  m
{ 
    auto Cooked = "(Hello\r\nThere)"; 
    auto Raw = R"(Hello\r\nThere)"; 

    cout << Cooked << endl; 
    cout << Raw << endl; 
}



PreviousNext

Related