Advertisement
Josif_tepe

Untitled

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