A simple C++ to determine the highest average given certain values