結果 : function taking array as argument c++