Implementing an ADT

Last edited on
If you are inheriting from a template class you still need to include the template parameters.

1
2
template<class ItemType>
class MyStack : public StackInterface<ItemType> 
Thanks that fixed one of the four problems.
Forgot to mention the other thing. To use vector you need to include the std namespace.

Either add using namespace std; to the top of your MyStack.h or preferably do std::vector<ItemType> stack;
Thanks again. Appreciate the help
Topic archived. No new replies allowed.