ECE-39595C Homework 7

$30.00

Category: You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (5 votes)

See the code provided in the userid directory, which implements a Node class that allows binary trees to be built whose data is an Int object. Convert this code into a Template class that is parameterized by a single type T that is the type of the data field in Node. Types for T must be primitives or overload operator<, operator> and operator==. I have provided an Int class which meets these constraints. You should provide a Float class that also meets these conditions. What to turn in: Turn in your code in a directory called , where is your Purdue login/userid. g++ *.cpp followed by ./a.out in the userid directory should allow this code to compile and run. Zip up the userid directory and turn it in. Grading: 1 point for compiling with templates implemented 3 points for working with Int 3 points for working with Float 3 points for working with float.