ECE39595C Homework 7 Node class solution

$24.99

Original Work ?

Download Details:

  • Name: HW7CPPAssigned-lcamlf.zip
  • Type: zip
  • Size: 105.22 KB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

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.