WhatABeautifulWorld
WhatABeautifulWorld

Reputation: 3388

How do I wrap up the line c++

I have a very long line:

const string a_string = "a long string with \" .. with \" again ... ... ";

Now this string goes really long, how do I wrap up the line in an elegant way? I tried just break line but it doesn't work. I am actually not sure if this is a IDE problem or compiler problem... Please help!

Upvotes: 0

Views: 1040

Answers (1)

DigitalEye
DigitalEye

Reputation: 1565

Try

const string a_string = "a long string "
                        "with \" .. with \" "
                        "again ... ... ";

Upvotes: 9

Related Questions