|
|
|
|
301
|
|
301
|
|
302
|
The genes in the eyebrows follow these rules:
|
302
|
The genes in the eyebrows follow these rules:
|
303
|
|
303
|
|
304
|
-a. If both parents have "angry" eyebrows, the baby will have "unibrow" eyebrows.
|
|
|
305
|
-
|
|
|
306
|
-b. If both parents have "unibrow" eyebrows, the baby will have "upset" eyebrows.
|
|
|
307
|
-
|
|
|
308
|
-c. In other cases, the baby will inherit the eyebrows with most dominance from the parent's eyebrows.
|
|
|
|
|
304
|
+ * If both parents have "angry" eyebrows, the baby will have "unibrow" eyebrows.
|
|
|
305
|
+ * If both parents have "unibrow" eyebrows, the baby will have "upset" eyebrows.
|
|
|
306
|
+ * In other cases, the baby will inherit the eyebrows with most dominance from the parent's eyebrows.
|
309
|
|
307
|
|
310
|
|
308
|
|
311
|
### Exercise 2 - Study the `main` function
|
309
|
### Exercise 2 - Study the `main` function
|
|
|
|
|
325
|
|
323
|
|
326
|
4. Open the file `main.cpp` (you will not make changes in any other file in this project). Study the `main` function. You will NOT make changes to the `main` function. Note that the `main` function essentially does two things:
|
324
|
4. Open the file `main.cpp` (you will not make changes in any other file in this project). Study the `main` function. You will NOT make changes to the `main` function. Note that the `main` function essentially does two things:
|
327
|
|
325
|
|
328
|
- a. Creates three birds and adds two of them to the window.
|
|
|
329
|
- b. Creates a timer that waits a second and after invokes the `birth` function passing by reference to the window and the three birds.
|
|
|
|
|
326
|
+ 1. Creates three birds and adds two of them to the window.
|
|
|
327
|
+ 2. Creates a timer that waits a second and after invokes the `birth` function passing by reference to the window and the three birds.
|
330
|
|
328
|
|
331
|
---
|
329
|
---
|
332
|
|
330
|
|