Josif_tepe

Untitled

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