Previous reading guide     Next reading guide

AP Reading guide - Lecture 2 and 3

This is a reading guide to Part II of The C++ Prog. Lang. (4. edition).

Chaper 6: Basic stuff, most of which is relatively simple and well-known to C programmers. Pay attention to 6.2.2 (Booleans) 6.3.1 (structure of declarations), 6.3.5 (initialization), 6.3.6 (type deduction) and 6.4 (low level object notation, and values, lvalues/rvalues, lifetime).

Chapter 7: Section 7.1 - 7.4 is basically well-known stuff from C, but it may be nice to read the concise overview from Bjarne Stroustrup, if you have time. Notice nullptr in 7.2.2, raw strings in 7.3.2.1, the Unicode support in C++11 in 7.3.2.2, pointers and const (7.5 and 7.6). Be sure to read about References in 7.7.

Chapter 8 is mostly well-known stuff from C. Notice, however, the C++11 scoped and strongly typed variation of enumeration types (8.4).

Do not use much time on chapter 9 (about statements). Take notice of ranged-for (C++11) in 9.5.1.

Chapter 10 is about expressions, and as such most stuff is well-known from C. The most noteworthy sections are the ones about temporary objects (10.3.4) and constant expressions (10.4).

Chapter 11 is called 'Select Operations' - a funny name that covers a bag of miscellaneous topics related to expressions. You should familiarize yourself with the free store (11.2) and {}-expreessions (11.3). You are probably curious about lambda expressions in C++11 - therefore you should read section 11.4. Also, read 11.5 about explicit type conversions in C++, in contrast to type casting in C.

Chapter 12 is about functions, and as such some of the teritory is already well-known. Pay attention to constexpr functions (12.1.6), reference arguments (12.2.1), default arguments (12.2.5), and function overloading (12.3)

Chapter 13 is about exception handling. Exception handling is not a big topic in part one of 'Advanced Programming'. Therefore you may choose to postpone chapter 13 to part 2 of the course. Chapter 14 is about namespaces - logical program organization in C++. Chapter 15 source files and programs - physical program organization in C++.

Previous reading guide     Next reading guide

/KNX