Lecture 3 - Slide 12 : 27
Strings - examples
We show simple examples that illustrate the value semantics of C++ strings and the pointer semantics of C-style strings
The C++ Prog. Lang. (3. edition)
:
Page 588
The Knold & Tot example from section 20.3.6 of 3rd version of the C++ book.
The Knold & Tot example with char*.
The Knold & Tot example with char[].
The Knold & Tot example with strcpy from <cstring>.
The Knold & Tot example with char* aliasing.
String dokumentation at cplusplus.com
Illustration of various basic string operations in C++.
Same - with C++ initializations.
Program output.
String functions