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
};