Strings
Strings
Strings
Learning Objectives
An Array Type for Strings
C-Strings
C-strings
Array with base type char
End of string marked with null, "\0"
"Older" method inherited from C
String class
Uses templates
Manipulations
Require library <cstring>
Typically included when using c-strings
Normally want to do "fun" things with them
Whitespace is "delimiter"
Tab, space, line breaks are "skipped"
Input reading "stops" at delimiter
aCString = stringVar;
ILLEGAL!
Cannot auto-convert to c-string