会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
miaorn
博客园
首页
新随笔
联系
订阅
管理
2021年1月9日
c++ 模板类不能分离编译
摘要: 在.h文件中必须同时有模板的声明和明确的定义,不能在.cpp中却定义。 1 #ifndef STACKTP_H_ 2 #define STACKTP_H_ 3 template <class Type, int MAX> 4 class Stack 5 { 6 private: 7 Type ite
阅读全文
posted @ 2021-01-09 12:22 miaorn
阅读(117)
评论(0)
推荐(0)
编辑
公告