Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- queue<int>_push(int arr[],int n)
- {
- queue<int>q;
- for(int i=0;i<n;i++)
- {
- q.push(arr[i]);
- }
- return q;
- }
- void _pop(queue<int>s)
- {
- while(!s.empty())
- {
- cout<<s.front()<<" ";
- s.pop();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement