Splitting C++ Strings Onto Multiple Lines (Code Syntax, Not Parsing)

前端 未结 3 562
日久生厌
日久生厌 2021-01-31 13:34

Not to be confused with how to split a string parsing wise, e.g.:
Split a string in C++?

I am a bit confused as to how to split a string onto multiple lines in c++.<

3条回答
  •  天命终不由人
    2021-01-31 13:46

    Are they both literals? Separating two string literals with whitespace is the same as concatenation: "abc" "123" is the same as "abc123". This applies to straight C as well as C++.

提交回复
热议问题