How come I can have:
stack<int> List;
but when I do the following i get errors:
stack<stack<int>> List;
I want to have a stack of stacks of integers. That would be ideal for my program. When I do the same thing with vectors it also doesn't work.
How come I can have:
stack<int> List;
but when I do the following i get errors:
stack<stack<int>> List;
I want to have a stack of stacks of integers. That would be ideal for my program. When I do the same thing with vectors it also doesn't work.
Try this:
ggCode:typedef stack<int> intstack; ... stack<intstack> stack_o_stacks;
Hmm, where have we seen >> operator before? I'm pretty sure that'll confuse the compiler.Code:stack<stack<int>>
Try: stack<stack<int> >
omg that's a load of bull, as if that works
I can't believe it was that mundane of a problem