您的位置:首页 > 其它

模版函数

2015-08-31 12:17 429 查看
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;
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: