mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-06 14:56:54 +02:00
Update c++.html.markdown
This commit is contained in:
@@ -217,7 +217,7 @@ cout << myString + myOtherString; // "Hello World"
|
|||||||
|
|
||||||
cout << myString + " You"; // "Hello You"
|
cout << myString + " You"; // "Hello You"
|
||||||
|
|
||||||
// C++ strings are mutable and have value semantics.
|
// C++ strings are mutable.
|
||||||
myString.append(" Dog");
|
myString.append(" Dog");
|
||||||
cout << myString; // "Hello Dog"
|
cout << myString; // "Hello Dog"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user