Josif_tepe

Untitled

Jul 25th, 2025
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <deque>
  3. using namespace std;
  4.  
  5. int main() {
  6.    
  7.     deque<int> dq;
  8.    
  9.     dq.push_back(1);
  10.     dq.push_back(2);
  11.     dq.push_back(3);
  12.    
  13.     while(!dq.empty()) {
  14.         cout << dq.front() << endl;
  15.         dq.pop_front();
  16.     }
  17.     return 0;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment