queue1.cpp

queue1.cpp

#include ‹iostream.h›

#include ‹stl.h›

int main() {

 queue‹list‹int› › q;

 q.push(42);

 q.push(101);

 q.push(69);

 while (!q.empty()) {

  cout ‹‹ q.front() ‹‹ endl;

  q.pop();

 }

 return 0;

}