Advertisement
Josif_tepe

Untitled

Feb 12th, 2021
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include<ctype.h>
  3. #include<cmath>
  4. #include<iomanip>
  5. #include <vector>
  6. #include <algorithm>
  7. #include <queue>
  8. using namespace std;
  9.  
  10. int main()
  11. {
  12.     queue<int> q;
  13.     q.push(10);
  14.     q.push(20);
  15.     q.push(30);
  16.     q.push(40);
  17.     while(!q.empty()) {
  18.         cout << q.front() << endl;
  19.         q.pop();
  20.     }
  21.     cout << q.empty() << endl;
  22.     return 0;
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement