摘要: 在.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) 编辑