Skip to content

Commit d5738ae

Browse files
committed
update readme
1 parent b096500 commit d5738ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Chapter12/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,6 @@ Define a class `Pseudo_window` that looks as much like a `Window` as you can mak
138138

139139
## [Exercise 13](exercises/13)
140140
Define a `Binary_tree` class derived from `Shape`. Give the number of levels as a parameter (`levels==0` means no nodes, `levels==1` means one top node with two sub-nodes each with two sub-nodes, etc.). Let a node be represented by a small circle. Connect the nodes by lines (as is conventional). P.S. In computer science, trees conventionally grow downward from a top node (amusingly, but logically, often called the root).
141+
142+
## [Exercise 14](exercises/14)
143+
Modify `Binary_tree` to draw its nodes using a virtual function. Then, derive a new class from `Binary_tree` that overrides that virtual function to use a different representation for a node (e.g., a triangle).

0 commit comments

Comments
 (0)