Advertisement
Josif_tepe

Untitled

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