D
Daniel Heiserer
Hi,
I want to fill a string like this:
using namespace std;
string text="
now a lot of text ................
now a lot of text ................
now a lot of text ................
now a lot of text ................
now a lot of text ................
";
I get the warning message using g++ (GCC) 3.2.2 on linux:
.......warning: multi-line string literals are deprecated
Is there a way to write large portions of text right into the
code without getting these warnings?
I do not want to write something like this:
string text;
text+="now a lot of text ................";
text+="now a lot of text ................";
text+="now a lot of text ................";
text+="now a lot of text ................";
text+="now a lot of text ................";
-- thanks, daniel
I want to fill a string like this:
using namespace std;
string text="
now a lot of text ................
now a lot of text ................
now a lot of text ................
now a lot of text ................
now a lot of text ................
";
I get the warning message using g++ (GCC) 3.2.2 on linux:
.......warning: multi-line string literals are deprecated
Is there a way to write large portions of text right into the
code without getting these warnings?
I do not want to write something like this:
string text;
text+="now a lot of text ................";
text+="now a lot of text ................";
text+="now a lot of text ................";
text+="now a lot of text ................";
text+="now a lot of text ................";
-- thanks, daniel