View Single Post
Old Mar 22nd, 2008, 5:04 AM   #4
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,198
Rep Power: 5 lectricpharaoh will become famous soon enough
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
lectricpharaoh is offline   Reply With Quote