1
Reply

Array of classes or structures?

james Last

james Last

May 26 2006 6:29 AM
2k

Hi,

I have a number of queue structures. I want to have multiple instances of these,

i.e   Instance 1        Instance 2        Instance 3      ...
      ------------        ------------        ------------
      queueA             queueB               queueC

I was thinking of usind a structure or a class to store the queues and then having an array of theses structures or classes.

As I am only storing queues what is the best object to hold them, a class, a structue or another data structure?

Thanks
Macca


Answers (1)