How to do it...

Perform the following steps to try this recipe:

  1. 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/chapter11

  1. To compile the source code, run the following:
> cmake .
> make recipe03_examples
  1. Once the source code is compiled, you can execute each example in this recipe by running the following commands:
> ./recipe03_example01
button width: 42

> ./recipe03_example02
button1 width: 10
button2 width: 42

> ./recipe03_example03
button width: 74

> ./recipe03_example04
button width: 42
button content width: 4

In the next section, we will step through each of these examples and explain what each example program does and how it relates to the lessons being taught in this recipe.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset