Saturday, May 22, 2010

I want a C++ code for enqueuing and dequeuing a queue and storing the the data from the queue in a linked list

create two linked lists just use the first linked list as a queue add nodes to the back of the list and then take nodes from the front of the list. it is quite simple to make code for this.

I want a C++ code for enqueuing and dequeuing a queue and storing the the data from the queue in a linked list
it si there in stroustrup's book, do not copy and submit, you will get a ZERO in your assignment check http://ask.earn.tk/
Reply:sounds like data structures %26amp; algorithms homework.





may i advise something? If you go through the effort to learn about programming, don't skip these important exercises. suppose you land a job and you have to work with queues.





even during job interviews, job candidates who try to fake it don't have much of a chance.





so pick up the book, look at the C++ data structure for a queue (a class with the content of the current node and forward and backward links; and methods to enqueue and dequeue).





good luck.
Reply:use std::queue.


No comments:

Post a Comment