C++ 標準函式庫的stack ,事實上也額外隱含了一個變數,記錄資料數量。 ... for (int i=0; i<5; i++); c[array[i]]++;; // 由小到大讀取lookup table,順便排序數字。
確定! 回上一頁