It's queue<queue<int> >...
Another thing that's nice to do is typedef:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
#include <queue>
typedef std::queue<int> InnerQueue;
typedef std::queue<InnerQueue> OuterQueue;
int main()
{
OuterQueue myqueue;
InnterQueue temp;
temp.push(27);
myqueue.push(temp);
return 0;
}
|
Last edited on
Last edited on
ok thanks but now how would i pop the internal queue so the second cout displays 456?