Let's try this recipe with the following steps:
- From a new Terminal, run the following to download the source code:
> cd ~/
> git clone https://github.com/PacktPublishing/Advanced-CPP-CookBook.git
> cd Advanced-CPP-CookBook/chapter09
- To compile the source code, run the following:
> cmake .
> make recipe01_examples
- Once the source code is compiled, you can execute each example in this recipe by running the following commands:
> ./recipe01_example01
1
0
In the next section, we will step through each of these examples and explain what each example program does and how it relates to lessons being taught in this recipe.