c++ primer 4th edition - String question -


I am reading page 86 in this book about strings and litls and I do not understand that this string Why do the following say about S1 and S2?

  string S1 ("hello,"); String S2 ("World \ n"); String S3 = S1 + S2; ..   

It says that punctuation marks are contained in the s1 and s2 I punctuation? What punctuation

Also on page 87.

  string s1 = "hello"; // No punctuation marks again?   

Can anyone explain? I actually went and saw the author on the book in question "," and "\ n" to " Punctuation "is being considered. Next verse on page 86:

  wire s1 and s2 include straight punctuation. We can mix the string objects and string literals and get the following results. Are: String S1 ("Hello"); String S2 ("World"); String s3 = s1 + "," + s2 + "\ n";   

- donation

Comments