Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- int main(){
- deque <int> dq;
- dq.push_back(1);
- dq.push_back(2);
- dq.push_front(3);
- while(!dq.empty()){
- printf("%d\n",dq.front());
- dq.pop_front();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement