2.2	Example 1 - Hello World	39
2.3	Example 2 - simple variation	39
2.4	Example 3 - yet another variation	40
2.6	Example 4 - Simple text i/o using C++ style strings	42
2.7	Example 5 - Simple numeric i/o	42
2.8	Example 6 - Legacy C style arrays of char	43
3.8.1.1	Example 1 - Using <climits>	49
3.8.1.2	Example 2 - using the sizeof() intrinsic	50
3.9	Example 3 - testing float, double and long doubles	53
3.16	Example 4 - reference syntax	54
3.18	Example 5 - simple auto usage	55
4.2	Example 1: the bit operators &, | and ^	62
5.2	Example 1 - type conversion and assignment	65
5.3	Example 2 - integer division in expressions	66
5.5	Example 3 - order of evaluation and brackets	67
5.6	Example 4 - the roots of a quadratic equation	68
5.7	Example 5 - time from Sun to Earth	69
5.8	Example 6 - temperature conversion, fahrenheit to centigrade	70
5.9	Example 7 - temperature conversion, celsius to fahrenheit	70
5.14	Example 8 - Real numbers getting too big.	73
5.15	Example 9 - Real numbers getting too small	74
5.16	Example 10 - <cfloat> information	75
5.17	Example 11 - Base conversion.	76
5.18	Example 12 - subtractive cancellation	77
5.19	Example 13 - expression equivalence.	78
5.20	Example 14 - character data as a form of integer data	79
5.23	Example 15 - type conversion	80
5.24	Example 16 - numeric literal constants	80
6.1.1	Example 1 - <array> and conventional for loop	87
6.1.2	Example 2 - <array> and range based for loop	89
6.2.1	Example 3 - <vector> and conventional for loop	90
6.2.2	Example 4 - <vector> and range based for loop	90
6.3.1	Example 5 - 2 d using <array>	91
6.3.2	Example 6 - 2 d using <vector>	92
6.4.1	Example 7 - 1 d dynamic <vector> allocation	93
6.4.2	Example 8 - 2 d dynamic <vector> allocation	94
6.4.3	Example 9 - Lower diagonal matrix	94
6.4.4	Example 10 - Ragged 2 d array	95
6.5.1	Example 11 - 1 d arrays	96
6.5.2	Example 12 - 2 d arrays	97
7.1	Example 1 - Hello world	101
7.2	Example 2 - String constructors	101
7.3	Example 3 - String comparison	101
7.4	Example 4 - String length, size, capacity and max_size methods	102
7.5	Example 5 - String concatenation	102
7.6	Example 6 - The find method	103
7.7	Example 7 - getline and substr methods	104
7.8	Example 8 - The ASCII character set	105
7.9	Example 9 - Finding punctuation	105
8.1.1.1	Example 1 - simple character arrays	111
8.1.1.2	Example 2 - using strcpy and strcat	112
8.1.1.3	Example 3 - the first 128 characters	112
8.1.1.9	Example 4 - using <cctype> toupper	113
8.1.1.10	Example 5 - using strlen	114
9.4.1	Example 1 - solving the roots of a quadratic equation	117
9.5.1	Example 2 - simple switch	119
9.5.2	Example 3 - more complex switch	119
9.6.1	Example 4 - simple while loop	121
9.7.1	Example 5 - simple do while	122
9.8.1	Example 6 - simple for loop	122
9.8.2	Example 7 - another for loop	123
9.9	Example 8 - Range based for loop	123
9.10	Example 9 - simple variant	124
9.11	Example 10 - simple variant	125
9.13	Example 11 - break, continue, goto	126
10.1	Example 1 - basic pointer usage	130
10.2	Example 2 - arrays and pointers	131
10.3	Example 3 - pointers and sentinels	132
10.4	Example 4 - pointers and dynamic memory allocation	132
10.5	Example 5 - float variant	133
11.1.1	Example 1 - trigonometric function usage	140
11.1.2	Example 2 - Passing arguments of numeric type to standard maths functions	140
11.3	Example 3 - Integer summation function: 1 d array as parameter	141
11.4	Example 4 - Integer summation function: 1 d <array> as parameter	142
11.5	Example 5 - Integer summation function: 1 d <vector> as parameter	143
11.6.1	Example 6 - Recursive factorial evaluation	144
11.7.1	Example 7 - header file sum.h	145
11.7.2	Example 8 - sum.cpp implementation file	145
11.7.3	Example 9 - summation test program	146
11.8	Example 10 - 2d array as parameter	147
11.9	Example 11 - 2 d <array> as parameter	148
11.10	Example 12 - 2 d <vector> as parameter	150
11.11	Example 13 - Passing functions as arguments to other functions and procedure variables	152
11.12.1	Example 14 - Swapping arguments: passing by address	153
11.12.2	Example 15 - Swapping arguments: passing by reference	154
11.12.3	Example 16 - Const and ref	154
11.13.1	Example 17 - Static variable	156
11.14	Example 18 - changing the precision of a program, float version	157
11.15	Example 19 - changing the precision of a program, double version	158
11.16	Example 20 - namespaces and funtions	160
12.2.1	Example 1 - Date data type using structs	164
12.2.2	Example 2 - Date data type using classes	165
12.3	Example 3 - Arrays of user defined data types using addresses	166
12.4	Example 4 - Nested Data Types	167
12.5	Example 5 - Concrete Time class	168
12.6	Example 6 - Built in date and time functions	169
12.7	Example 7 - C style singly linked list	170
12.8	Example 8 - Equivalent program using C++ style strings	172
12.9.1	Example 9 - The Date class revisited	172
12.9.2	Example 10 - Names and addresses revisited	174
13.7	Example 1 - simple character i/o using get and put	181
13.8	Example 2 - Simple line i/o using getline	182
13.10	Example 3 - reading from a text file	182
13.11	Example 4 - reading and writing to text files	183
13.12	Example 5 - reading text files and using substrings to extract data	184
13.14	Example 6 - displaying hexadecimal numbers	186
13.15	Example 7 - integer tabular output	187
13.16	Example 8 - using integers and reals	189
13.17	Example 9 - Writing large text files	190
13.18	Example 10 - Reading large text files	191
13.19	Example 11 - Writing large binary files	193
13.20	Example 12 - Reading large binary files	194
14.1	Example 1 - summation using arrays	199
14.2	Example 2 - summation using <array>	200
14.3	Example 3 - summation using <vector>	201
14.8	Example 4 - promotion of arguments	203
15.1.2	Example 1 - operator overloading []	207
15.1.3	Example 2 - operator overloading ()	208
15.1.4	Example 3 - operator overloading << and >>	209
16.1	Example 1 - simple minimum	212
16.2	Example 2 - Hoare's Quicksort	213
16.3.1	Example 3 - generating the random numbers	214
16.3.2	Example 4 - sorting the data	215
16.4	Example 5 - printing a collection	218
16.7.1	Example 6 - basic template syntax	219
17.1.1	Example 1 - Shape header file	220
17.1.2	Example 2 - Shape Implementation file	221
17.1.3	Example 3 - Shape test main program	222
19.1	Example 1 - passing objects as parameters and calling the default copy constructor	226
19.2	Example 2 - creating an object from another object and calling the default copy constructor	229
19.3	Example 3 - creating an object via assignment and calling the default copy constructor	230
19.4	Example 4 - user supplied copy constructor	231
19.5	Example 5 - creating an object via default assignment	233
19.6	Example 6 - user supplied assignment operator	236
20.1	Example 1 - new header file	239
20.2	Example 2 - same shape.cxx implementation file	239
20.3	Example 3 - circle class header file	240
20.4	Example 4 - circle class implementation file	240
20.5	Example 5 - circle inheritance test program	241
20.6	Example 6 - rectangle class header file	242
20.7	Example 7 - rectangle class implementation file	243
20.8	Example 8 - rectangle test program	243
21.1	Example 1 - Static binding	247
21.2	Example 2 - static binding variant	251
21.3	Example 3 - dynamic binding	255
22.1	Example 1 - Simple pure usage	261
23.2	Example 1 - Implicit conversion	262
23.5	Example 2 - const cast	263
23.7	Example 3 - dynamic cast	264
23.8	Example 4 - dynamic cast	265
23.9	Example 5 - dynamic cast	266
23.12	Example 6 - static cast	267
23.14	Example 7 - typeid	268
24.2.1	Example 1 - The Date header file	270
24.2.2	Example 2 - The Date cpp implementation file	271
24.2.3	Example 3 - The debug.h file	274
24.2.4	Example 4 - The main program	274
24.3	Example 5 - date variation	275
25.2	Example 1 - Integers	281
26.1	Example 1 - basic timer class usage	289
26.2	Example 2 - replacing timing with <ctime> to use <chrono>	293
26.3	Example 3 - reading a csv file	296
27.1	Example 1 - integer dynamic array class	302
27.2	Example 2 - float dynamic array class	306
27.4	Example 3 - the templated array class	310
28.2.1	Example 1 - domain_error	318
28.3.1	Example 2 - invalid_argument	319
28.4.1	Example 3 - logic_error	319
28.5.1	Example 4 - out_of_range	320
28.6.1	Example 5 - overflow_error	322
28.7.1	Example 6 - range_error	322
28.8.1	Example 7 - run_time_error	323
28.9.1	Example 8 - under_flow_error	324
28.10.1	Example 9 - basic syntax	324
28.10.2	Example 10 - exception raised in a function	325
28.10.3	Example 11 - function with exception specification	326
30.2	Example 1 - compares access via [] and .at()	341
30.3	Example 2 - sorting using <algorithm> sort	343
30.4	Example 3 - comparing <algorithm> with a user written quicksort	345
30.5	Example 4 - using fill(), assignment and equality tests	348
30.6	Example 5 - comparing accumulate with explicit summation	350
30.7	Example 6 - comparing accumulate with reduce par	353
30.8	Example 7 - comparing accumulate with reduce par_unseq	355
31.1	Example 1 - access using []and .at()	361
31.2	Example 2 - sorting using <algorithm>	363
31.3	Example 3 - comparing <algorithm> with a user written quicksort	365
31.4	Example 4 - vector creation, assignment and comparison	367
31.5	Example 5 - comparing accumulate with explicit summation	370
31.6	Example 6 - comparing accumulate with reduce par	372
31.7	Example 7 - comparing accumulate with reduce par_unseq	374
32.2	Example 1 - using new with arrays	383
32.3	Example 2 - passing dynamic 2 d arrays as parameters	383
33.1	Example 1 - simple list usage	386
34.1	Example 1 - simple set usage	389
34.2	Example 2 - C and C++ keyword look up	391
35.1	Example 1 - simple Map syntax	394
36.2	Example 1 - Hello world	398
36.3	Example 2 - Hello world using default variable data scoping	400
36.4	Example 3 - Hello world with private thread_number variable	401
36.5	Example 4 - Serial solution for the calculation of pi	402
36.6	Example 5 - Parallel solution for pi calculation	406
36.7	Example 6 - Parallel array element summation	410
37.6	Example 1 - hello world  	418
37.7	Example 2 - testing the MPI status	420
37.8	Example 3 - Hello World using send and receive	421
37.9	Example 4 - Serial solution for pi calculation  	423
37.10	Example 5 - Parallel solution for pi calculation 	427
37.11	Example 6 - Work sharing between processes  	431
38.3	Example 1 - Serial sorting and C style arrays	438
38.4	Example 2 - Serial sorting and <array>	439
38.5	Example 3 - Serial sorting and <vector>	440
38.6	Example 4 - Standard parallel sorting and <array>	442
38.7	Example 5 - Standard parallel sorting and <vector>	443
38.9	Example 6 - Parallel sorting using parallel_stable_sort	445
39.2	Example 1 - threading using callable objects	449
39.3	Example 2 - an array of threads	451
39.5	Example 3 - serial get - Windows	452
39.6	Example 4 - serial get - Linux	456
39.7	Example 5 - parallel get using an array of threads - Windows	460
39.8	Example 6 - parallel get using an array of threads - Linux	465
39.9	Example 7 - serial file i/o	468
39.10	Example 8 - parallel file i/o	471
40.1	Example 1 - 1 d C style array	477
40.2	Example 2 - 1 d <vector>	479
40.3	Example 3 - 1 d <array>	481
40.4	Example 4 - 2 d C style array	483
40.5	Example 5 - 2 d <vector>	485
40.6	Example 6 - 2 d <array>	487
40.8	Example 7 - creating vectors larger than 2,147,483,647	492
41.3.1	Example 1 - the header file	497
41.3.2	Example 2 - the function implementation file	497
41.3.3	Example 3 - the main test program	497
42.1.1	Example 1 - simple pair usage	500
42.2.1	Example 2 - STL algorithm usage	503
42.4	Example 3 - function objects	510
43.2	Example 1 - UK post codes	515
43.3	Example 2 - simple variant	517
44.2	Example 1 - Rainfall program using valarray	520
47.4	Example 1 - testing out the installation	588
47.5	Example 2 - finding out which version you are using	589
47.7	Example 3 - Parallel sorting using parallel_stable_sort	590
48.1.1	Example 1 - using <windows.h>	597
48.2.1	Example 2 - using <sysinfo.h>	599
