Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. int main(){
  3.  
  4.     deque <int> dq;
  5.     dq.push_back(1);
  6.     dq.push_back(2);
  7.     dq.push_front(3);
  8.  
  9.     while(!dq.empty()){
  10.         printf("%d\n",dq.front());
  11.         dq.pop_front();
  12.     }
  13.  
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement