Week 04

Lecture slides (Type Modifiers Part 2)

Lecture slides (Strings)

Pointers Visualized

Const

05.3-const.cpp

Type Inference

05.4-auto.cpp

The Unsigned Type

05.5-unsigned.cpp

The most common situation that you will encounter unsigned types is returned from the .size() member functions of containers in the STL. Any time you encounter such an unsigned type, you should immediately cast it to a signed type.

int string_size = static_cast<int>(s.size());

Chars

06.1-chars.cpp

06.2-charOps.cpp

Strings

06.3-basic_strings.cpp

More String Methods

06.4-input.cpp

06.5-range.cpp

06.6-more_strings.cpp

06.7-finds.cpp

06.8-lychrel.cpp