Logo

Programming-Idioms

History of Idiom 48 > diff from v49 to v50

Edit summary for version 50 by Dango:
New Cpp implementation by user [Dango]

Version 49

2019-06-24, 21:25:10

Version 50

2019-09-06, 11:11:50

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Extra Keywords
multiline raw
Extra Keywords
multiline raw
Imports
#include <string>
Code
  std::string multiline = R"( Earth is a planet.
So is the Jupyter)";
Comments bubble
Use raw string literals