Advertisement
Josif_tepe

Untitled

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