結果 : largest element in array c++ using function