Advertisement
Josif_tepe

Untitled

Sep 28th, 2024
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 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.     q.push(1);
  9.     q.push(2);
  10.    
  11.     cout << q.front() << endl;
  12.     q.pop();
  13.     cout << q.front() << endl;
  14.    
  15.    
  16.  
  17.     return 0;
  18. }
  19.  
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement