|
|
|
|
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.
|
304
|
a. If both parents have "angry" eyebrows, the baby will have "unibrow" eyebrows.
|
|
|
305
|
+
|
305
|
b. If both parents have "unibrow" eyebrows, the baby will have "upset" eyebrows.
|
306
|
b. If both parents have "unibrow" eyebrows, the baby will have "upset" eyebrows.
|
|
|
307
|
+
|
306
|
c. In other cases, the baby will inherit the eyebrows with most dominance from the parent's eyebrows.
|
308
|
c. In other cases, the baby will inherit the eyebrows with most dominance from the parent's eyebrows.
|
307
|
|
309
|
|
308
|
|
310
|
|
|
|
|
|
323
|
|
325
|
|
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:
|
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:
|
325
|
|
327
|
|
326
|
- a. Creates three birds and adds two of them to the window.
|
|
|
327
|
- b. Creates a timer that waits a second and after invokes the `birth` function passing by reference to the window and the three birds.
|
|
|
|
|
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.
|
328
|
|
330
|
|
329
|
---
|
331
|
---
|
330
|
|
332
|
|