其實這也很簡單,透過reverse把陣列反轉就可以了. reverse的格式跟sort很類似,他也是沒有回傳值的. reverse格式:. reverse(array_begin,array_end);.
確定! 回上一頁