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".