結果 : reverse array in cpp function