Tower of Hanoi
Consider the program which solves Tower
of Hanoi. Re-write this program and design a class "Tower" to
support the main program.
- The class Tower certainly has a data member Disc.
You may want to declare it as data type vector, if you name those
discs as 1, 2, 3, ....
- a tower also has a member function height(), which returns the
number of discs in this tower.