Advertisement
Josif_tepe

Untitled

Feb 17th, 2021
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <queue>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     queue<int> q;
  9.     q.push(1);
  10.     q.push(2);
  11.     q.push(3);
  12.     q.push(4);
  13.     q.push(5);
  14.     while(!q.empty()) {
  15.         cout << q.front() << endl;
  16.         q.pop();
  17.     }
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement