結果 : function that takes array as parameter c++