P
PengYu.UT
Hi,
In python, triple quote (""") can be used to quote a paragraph
(multiple lines). I'm wondering if there is any equivalent in C++.
For the following code, I could write the long string in a single line
with "\n" in the middle, or I could use multiple cout and endl. But I
just feel more readable if I can have the whole paragraph as a string.
Thanks,
Peng
#include <iostream>
int main() {
std::cout << "a long long long long long
long long long long long long string" << std::endl;
}
In python, triple quote (""") can be used to quote a paragraph
(multiple lines). I'm wondering if there is any equivalent in C++.
For the following code, I could write the long string in a single line
with "\n" in the middle, or I could use multiple cout and endl. But I
just feel more readable if I can have the whole paragraph as a string.
Thanks,
Peng
#include <iostream>
int main() {
std::cout << "a long long long long long
long long long long long long string" << std::endl;
}