Modify your Stack and Node classes into templated classes.

computer science

Description

Using your Hanoi, Node, Stack, and Peg code from Program #5, do the following:


Create a Stack equality (==) operator overload method.


Modify your Stack and Node classes into templated classes.  


Modify your Peg class to utilize disks of type char instead of type int.


When complete, your hanoi() program should run the same way it did with the non-templated versions of Node and Stack, using letters for disks instead of numbers.


Note that the following code will be added to the beginning of your Hanoi program during the grading process:

Instruction Files
5.txt
6.7 KB
55.txt
554.0 Bytes

Related Questions in computer science category