stack容器没有迭代器。
#includeusing namespace std; void test01() { stack s; s.push(10); s.push(20); s.push(30); s.push(40); if(!s.empty()) { cout<<"大小:"< 知识点2【queue容器】队列容器 queue容器没有迭代器
#includevoid test02() { queue q; q.push(10); q.push(20); q.push(30); q.push(40); if(!q.empty()) { cout<<"大小:"<



