Navigation
CHAPTERS CONTENTS EXERCISES INDEX ABOUT CONTACT
CONTENTS: Map Links (Examples: Content; First/Last, FL_Exceptions; Programs, Pr_Exceptions; Exercises, Ex_Exceptions)
Map content
CHAPTERS
contains a list of links to pages containing the contents of each chapter (all programs, including exercises), grouped by the sections in the corresponding chapter of the book this blog is based on. Exercises are placed in sections in appropriate places, based on the topics discussed. In the book, exercises are in the last section of each chapter. As a result, in the last section (Exercises) of each chapter on this blog we have only placed links to the exercises from that chapter. See the chapters in Chapters, Contents, Exercises, and the Index (entry exercises).
The first chapter on the blog is
Chapter_2
as there are no programs in the corresponding Chapter_1 of the book.
CONTENTS contains all programs, including exercises, from all chapters.
EXERCISES contains all exercises from all chapters, in order from first to last exercise.
INDEX contains links to programs on this blog, grouped by relevant topics, which are ordered alphabetically.
Links
Each page on this blog has navigation links at the top and bottom. Navigation links open in the same browser window. BACK_TO_TOP opens the current page in the same window, effect similar to reloading the page.
Each chapter in linked to the previous and the next chapters (and to the first program in the current chapter), except for the first and the last chapters, which may be linked to the previous/next blog to study. Content pages (Chapters, Contents) and the post
Contents
have links to other blogs and the first chapter on this blog.
Any program is linked to the previous and the next programs, except for the beginning and end of each chapters, in which case the links are to the current, respectively next chapters.
In addition, any program is linked to the previous and the next exercises.
Any exercise is a program, but there are also programs that are not exercises.
As such, some programs may be linked to one or two previous/next programs. In such cases, the previous and the next exercises (when these are not the previous/next programs) are the outer links, while the previous/next programs (when these are not exercises) are the inner links (see below).
EXAMPLES
Note: Here, the following "navigation" links become internal links (within the current page), so they open in a separate window. We have placed the current example program or page in the middle.
Content
Programming_Lang_blog C++_Prog_blogs | Contents | Chapter_2 Thinking_in_C++_vol_2_blog |
Contents page is linked to the blogs referring to Thinking_in_C++_vol_1, namely Programming_Languages_blog and C++_Programming_blogs, as well as to the first chapter on this blog (Chapter_2) and the next blog to study, Thinking_in_C++_vol_2_blog.
Chapters | Chapter_2 | Declare Exercise_2-1 Chapter_3 |
Chapter_2 is the first chapter on the blog, linked to the first program (Declare), the first exercise (Exercise_2-1), and the next chapter, Chapter_3. Here, the first program in the chapter is not an exercise.
Chapters Chapter_15 | Chapter_16 | IntStack Exercise_16-1 TCP2_blog |
Chapter_16 is the last chapter, linked to the next blog to study, Thinking_in_C++_vol_2_blog (TCP2).
The last section of each chapter contains links to the exercises from that chapter:
Chapter_2 Exercise_2-10 | ch2-Exercises | Chapter_3 |
First/Last program/exercise
Chapter_2 | Declare | Hello Exercise_2-1 |
Declare is the first program in Chapter_2, linked to the next program, Hello, and the next exercise, Exercise_2-1. Here, the next program is not an exercise.
Chapter_2 Hello | Exercise_2-1 | Stream Exercise_2-2 |
Here, Exercise_2-1 is the first exercise in Chapter_2, so it has no previous exercise.
Chapter_2 Exercise_2-9 | Exercise_2-10 | ch2-Exercises Chapter_3 |
Exercise_2-10 is the last program in Chapter_2, so it is linked to the next chapter, Chapter_3. Here, the previous program is an exercise. Note how Exercise_2-10 is also linked to the exercises section, ch2-Exercises.
First/Last Exceptions
When the last program in a chapter is not an exercise, the previous exercise is linked to the next chapter, which contains the next exercise. In addition, if there are several programs (that are not exercises) at the end of a chapter, then each of them will be linked to the next chapter.
Programs
Chapter_2 Exercise_2-7 | Intvector | Exercise_2-8 |
Here, the previous/next programs are exercises.
Chapter_2 Declare | Hello | Exercise_2-1 |
Here, Hello has no previous exercise, just a previous program, Declare, being at the beginning of the chapter. The next program is also the next exercise, Exercise_2-1.
Chapter_2 Exercise_2-1 Concat | Numconv | Exercise_2-2 |
Here, the previous program is not an exercise, while the next program is an exercise.
Chapter_2 Exercise_2-1 | Stream | Concat Exercise_2-2 |
Here, the previous program is an exercise, while the next program is not an exercise.
Chapter_2 Exercise_2-1 Stream | Concat | Numconv Exercise_2-2 |
Here, the previous/next programs are not exercises.
Programs Exceptions
Chapter_3 Exercise_3-7 OnTheFly | Global | Exercise_3-9 Exercise_3-8 |
Here, the next program is an exercise (Exercise_3-9), but not the one following its previous exercise (Exercise_3-7). As such, we have to add the next exercise to the outer link (Exercise_3-8).
Chapter_3 Exercise_3-14 ConstCast | ReinterpretCast | Exercise_3-8 Exercise_3-15 |
Here, the next program is an exercise (Exercise_3-8), but not the one following its previous exercise (Exercise_3-14). As such, we have to add the next exercise to the outer link (Exercise_3-15).
Exercises
Chapter_2 Exercise_2-3 | Exercise_2-4 | Exercise_2-5 |
Here, the previous/next programs are exercises.
Chapter_2 Exercise_2-2 GetWords | Exercise_2-3 | Exercise_2-4 |
Here, Exercise_2-3 is preceded by program GetWords (Section Files, Chapter_2), while the previous exercise is Exercise_2-2. The next program is also the next exercise, Exercise_2-4.
Chapter_2 Exercise_2-6 | Exercise_2-7 | Intvector Exercise_2-8 |
Here, the next program is Intvector, while the next exercise is Exercise_2-8 (Section vector, Chapter_2). The previous program is an exercise.
Chapter_2 Exercise_2-1 Numconv | Exercise_2-2 | CallHello Exercise_2-3 |
In this example, the outer links are the previous and next exercises, while the inner links are the previous and next programs in the current section (Streams in Chapter_2).
Exercises Exceptions
Chapter_3 Exercise_3-7 ReinterpretCast | Exercise_3-8 | Exercise_3-12 Exercise_3-9 |
Here, the next program is an exercise (Exercise_3-12), but not the one following it (Exercise_3-8). As such, we have to add the next exercise to the outer link (Exercise_3-9). Exercise_3-8 is about trigraphs, which appear in the book at the end of Section Operators, Subsection Explicit_Operators. Exercise_3-12 is about explicit operators. Exercise_3-9 is about storage allocation, so we have added it to the previous section.
Chapter_3 Exercise_3-11 Exercise_3-8 | Exercise_3-12 | typedef Exercise_3-13 |
Here, the previous program is an exercise (Exercise_3-8), but not the one preceding it (Exercise_3-12). As such, we have to add the previous exercise to the outer link at the left (Exercise_3-11), just after Chapter_3.
Chapter_3 Exercise_3-29 Exercise_3-34 | Exercise_3-30 | Exercise_3-35 Exercise_3-31 |
In this last example, all links are exercises (except for Chapter_3). Here again, the previous/next programs, which are also exercises (Exercise_3-34 and Exercise_3-35) are not preceding/following the current exercise (Exercise_3-30). As such, we have to add Exercise_3-29 and Exercise_3-31 as outer links. Just as before, the order of these exercises does not match the topics discussed in Chapter_3. Exercise_3-30 and Exercise_3-35 are about makefiles (Section Make, last section with programs), while Exercise_3-31 to Exercise_3-34 are in the previous two sections.
Comments
Post a Comment