mirror of
https://github.com/VictorEijkhout/TheArtOfHPC_vol3_cppf08programming.git
synced 2026-01-24 22:44:48 +09:00
43 lines
860 B
C++
43 lines
860 B
C++
/****************************************************************
|
|
****
|
|
**** This file belongs with the course
|
|
**** Introduction to Scientific Programming in C++/Fortran2003
|
|
**** copyright 2017-2021 Victor Eijkhout eijkhout@tacc.utexas.edu
|
|
****
|
|
**** raw.cxx : raw string literals
|
|
****
|
|
****************************************************************/
|
|
|
|
#include <iostream>
|
|
using std::cin;
|
|
using std::cout;
|
|
#include <iomanip>
|
|
using std::setw;
|
|
|
|
#include <vector>
|
|
using std::vector;
|
|
|
|
#include <string>
|
|
using std::string;
|
|
|
|
int main() {
|
|
|
|
cout << "Raw1\n";
|
|
//codesnippet raw1
|
|
cout << R"(string with }
|
|
|
|
{ \weird\ stuf)" << '\n';
|
|
//codesnippet end
|
|
cout << "raw1\n";
|
|
|
|
cout << "Raw2\n";
|
|
//codesnippet raw2
|
|
cout << R"limit("(string with }
|
|
|
|
{ \weird\ stuff)")limit" << '\n';
|
|
//codesnippet end
|
|
cout << "raw2\n";
|
|
|
|
return 0;
|
|
}
|