Advertisement
sajid161

12:1

Jan 9th, 2021
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1.  
  2. queue<int>_push(int arr[],int n)
  3. {
  4.    queue<int>q;
  5.    for(int i=0;i<n;i++)
  6.    {
  7.        q.push(arr[i]);
  8.    }
  9.    return q;
  10. }
  11.  
  12. void _pop(queue<int>s)
  13. {
  14.     while(!s.empty())
  15.     {
  16.         cout<<s.front()<<" ";
  17.         s.pop();
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement