Josif_tepe

Untitled

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