Create raw or cooked string - C++ Data Type

C++ examples for Data Type:string

Description

Create raw or cooked string

Demo Code

#include <iostream> 

using namespace std; 

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

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

Result


Related Tutorials