摘要: View Code 1 #include<iostream> 2 #include<assert.h> 3 using namespace std; 4 5 //const int maxSize=50; 6 const int stackIncreament=20; 7 8 9 10 template<class T> class Stack 11 { 12 public: 13 Stack(){}; //由于没写{},一直报错。undefined reference to Stack<int>::stack 注意模板的分离编译。 14 vir 阅读全文
posted @ 2011-11-14 02:27 YipWingTim 阅读(502) 评论(0) 推荐(0) 编辑