|
Re: How to name queues using a "for" loop??
You've got the idea. Disregard Ooble's post, as it's for C++ rather than C (unless you posted this in the wrong forum, and meant to post in the C++ forum). I'm assuming this is for school, and your instructor has given you the queue ADT, or you got them from the textbook.
You will need to create an array of queues, and then initialize each element of the array. Now, depending how your queue type is implemented, you may need to allocate an array of pointers instead, but I doubt it. Can you post the contents of your queue.c and queue.h files?
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
|