C++: A function and program to find greatest of two.