cpp 模版函数
template <typename T> void fillingTable(T ***table, int row, int column, int defaultValue = STATE_NULL){ *table = new T*[row]; for (int r = 0; r < row; r++){ (*table)[r] = new T[column]; for (int c = 0; c < column; c++){ (*table)[r][c] = defaultValue; } } }