Binary search tree homework question!

Step 1:
We are given this to put into a header file called int.h:

class integer
{
public:
// constructor, initialize intValue and set count = 1
integer(int n);

// return intValue
int getInt();

//return count
int getCount();

// increment count
void incCount();

//compare integer objects by intValue
friend bool operator< (const integer& lhs, const integer& rhs);
friend bool operator== (const integer& lhs, const integer& rhs);
private:
// the integer and its count
int intValue;
int count
};
I'm a little lost, whats the actual question? int.h is a bad naming convention for a header file as well as the class name integer.

Here's a link for a good example of a binary tree:
http://www.cprogramming.com/tutorial/lesson18.html
So… What's the point?
Topic archived. No new replies allowed.