[英]cpp iterator problem
template<class T>
class mStack
{
private:
vector<T> a;
vector<T>::iterator top;
public:
void push(T);
T pop();
mStack();
void printStack();
};
The code with above class is not getting compiled... why? 上面类的代码没有得到编译...为什么? What is the problem?
问题是什么? The compiler says "expected ; above top".
编译器说“ expected; top top”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.