Change your solution for Exercise 12-2 so that it implements the compare() function as a friend of the Integer class. Afterward, ask yourself whether it was really necessary for this function to be a friend. Implement a static function print Count() for the Integer class that you created earlier in Exercise 12-2 that outputs the number of Integers in existence. Modify the main() function such that it tests that this number correctly goes up and down when needed.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here