Can someone please send me a copy of a working queue that will except integers and allow for deletion of nodes.
Can someone please send me a copy of a working queue that will except integers and allow for deletion of nodes.
Well, seeing as how writing a queue with those requirements takes almost no effort at all, give it a try yourself and if you have problems with your code we'll try to help.
-Prelude
My best code is written with the delete key.
if u're too lazy to write it urself....
here's a wild idea.
#include <queue.h>
curiousity killed the cat, but it
makes for one hell of a programmer.
Alien.
On a kinder, gentler note (rare for me, I know)--- is your inability to create a queue because you
a) don't understand how they work
b) don't know enough to manage pointers
c) are afraid to ask the teacher for help...
We can explain the former two, and once you've given it a try, we'd be happy to help you understand the rest. If this is for a class project, don't by shy-- ask your teacher. I kid you not when I say that this is the only time in your life when you can ask anything you like and not look stupid-- your not _supposed_ to "know" anything yet...
good luck,