answersLogoWhite

0

#include<deque>

std::deque<int> deq;

deq.push_back (42); deq.pop_back ();

deq.push_front (0);

deq.pop_front ();

User Avatar

Wiki User

7y ago

What else can I help you with?

Related Questions

How can you implement a queue using stacks efficiently?

To implement a queue using stacks efficiently, you can use two stacks. One stack is used for enqueueing elements, and the other stack is used for dequeueing elements. When dequeueing, if the dequeue stack is empty, you can transfer elements from the enqueue stack to the dequeue stack to maintain the order of elements. This approach allows for efficient implementation of a queue using stacks.


Program for dequeue in data structure?

Display function in de queue void display() { int i; if((front == -1) (front==rear+1)) printf("\n\nQueue is empty.\n"); else { printf("\n\n"); for(i=front; i&lt;=rear; i++) printf("\t%d",queue[i]); } }


How do you delete old chat files?

The instructions would depend on which chat program you are using.


How can you delete something that says another program is using it right now but there is no program running?

well you can try and delete using a file shredder. heres a link to one with a free trial that might do the trick. here you go. http://www.sharewareriver.com/product.php?id=4328


How do I remove a tv program from my facebook that I don't like anymore running windows seven I can highlight it but there is no delete option?

if there is no delete button try using the backspace


How do you delete temporary files?

A simple way to delete temporary files would include using your 'disk cleanup' utility. Just click on the program and check the box next to 'temporary files.' Then confirm the delete.


What i do if this message appear ''another program is currently using this file ''?

Maybe there is still one software is using this file! You should close the software first if you want to operate the file!,for examble,if your computer has a movie file in D disk,and the media software is using it meanwhile,at this time ,you want to delete the movie file for some reasons,when you click"delete",the system will alert you that "another program is currently using this file"! So what you need to do is to close the software which is using the file you want to delete!


When you delete an item from the empty stack will the program execute?

If the program correctly checks the error-conditions, it will terminate -- otherwise it will do... something, e.g. using memory-garbage as data.


i would like to recover delete e-mails?

It depends what e-mail program you are using.


Can not delete cache from PC says other program or person might be using it but your the only one logged on what does this mean?

Boot up in Safe Mode, and delete almost everything what you want from there.


Which method or program you believe is most appropriate for destroying data so that nobody can recover it?

XL Delete is a powerful secure delete software that will permanently delete your private files using its powerful wipe engine.XL Delete can permanently delete any type of file, folders, and even your Internet cookies, history, and cache files. Files deleted with XL Delete can not be restored using file recovery software.


How do you delete a vista print account?

One can delete a Vistaprint account by using the program. Go to Help on the Vistaprint menu bar, followed by the Payment &amp; Billing option. Information will be there on how to cancel membership.