1234567891011121314
#include <list> #include <queue> int main() { std::list<int> a = { 0, 1, 2, 3 } ; std::list<int> b = { 4, 5, 6, 7, 8, 9 } ; std::list<int> c ; std::queue< std::list<int> > q ; q.push(a) ; q.push(b) ; q.push(c) ; }
123456789101112
struct node { int data; node *link; }; struct queue { node list; //feel something wrong here queue *qlink; };