模版函数
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; } } }
相关文章推荐
- aJax请求结果中包含form的问题
- 利用栈可以进行平衡符号的检测
- iOS代码常用的代码片段
- Lucene-Java全文搜索引擎
- HDU2426 Interesting Housing Problem(KM匹配 )
- js内置对象属性及方法
- 惠普第一周
- 最老程序员创业开发实训4---IOS平台下MVC架构
- HDU-1301 Jungle Roads
- 关于网站用户接入,单点登录,discuz,ucenter
- Git的使用七(删除文件)仅限Mac亲测
- 简单的butterknife使用方法
- FL2440根文件系统的制作(完整版)
- Hadoop学习-hadoop常用命令
- 对号动画实现
- Java中JDBC的基本步骤
- 安装和使用Carthage
- FLASH CC 2015 CANVAS 导出音频问题
- hdu1358 Period(kmp周期)
- Swift2.0发布以来的历次主要更新