[try Beta version]
Not logged in

 
Implementing an ADT

Oct 13, 2017 at 3:51am
Last edited on Oct 16, 2017 at 4:21am
Oct 13, 2017 at 5:57am
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> 
Oct 13, 2017 at 6:24am
Thanks that fixed one of the four problems.
Oct 13, 2017 at 6:35am
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;
Oct 13, 2017 at 6:54am
Thanks again. Appreciate the help
Topic archived. No new replies allowed.