Write a stack class using two STL lists. Naturally, a single STL list is more than enough to represent a stack.
This is my code so far. I don't know how to implement the push_back, pop front etc. in the list that's inside the stack. Am I even supposed to use templates? I feel like there is an easier way to do this answering the question. Also I am not sure what to do with the other list since it wants two lists. Thanks
the clue is in the name - STL list is implemented as a doubly linked list. it'd be very rare to find the exact match between your homework and what's out there, you'll have to look, learn and adapt - after all its your homework
if you'd shown a bit more concrete input perhaps it would be easier (more ethical?) to point you in the right direction(s)
so you're doing a fairly advanced (as far as class-room assignements are concerned) problem and you're saying that you all you could do on your own so far is just jot down the class and method names that you've been supplied with and nothing else??? I'm sorry but I'm not buying that, maybe someone else will ...