##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Strings handle text in your programs. Learn the C++ string class and common string operations.
The Goal
Understanding string concept
Comparing approaches
Using the string type
Creating string variables
Text storage
Test understanding
Giving strings content
Strings with no content
Text storage
Measuring string size
Test understanding
Getting individual letters
Changing individual letters
Protected character access
Test understanding
Combining text
Combining with plus
Text storage
Adding to existing strings
Test understanding
Testing string relationships
How strings are ordered
Text storage
Letter case in comparisons
Test understanding
Reading single words
Reading full lines
Text storage
Handling leftover newlines
Test understanding
Getting portions of strings
Locating text
Text storage
Handling failed searches
Test understanding
Processing each character
Simpler character access
Text storage
Flip text order
Finding specific characters
Comparing two strings
Convert before comparing
Breaking down the solution
Text storage
Complete solution
summary
Transform and rebuild string
Classify then transform
Breaking down the solution
Text storage
Complete solution
summary
What we learned