Is there anyway to do something like PHP\'s
print << END
yadayadayada
END;
in C++? (multi-line, unescaped, easy-to-cut-and-paste stre
There is not such thing as a HEREDOC in C++.
You can do
cout <<
"yadayadayada"
"yadayadayada"
<< endl;
That is the best you can get. But you still has to escape special chars like \,",'.
The way would it be to include the text as an ressource into the executable or load it from an external file.
If I understand you correctly, I believe you want this:
#include <iostream>
...
std::cout << std::endl << "yadayadayada" << std::endl;