I'm trying to create an array which holds a pointer to a container at each element. The container is of type Queue and is basically a linked list queue. I want to add an item to the linked list at a given index but I can't figure out how to do it.
This is the array being initialized:
Queue<string> * table;
table = new Queue<string>[tableSize];
This is what I want (I know it doesn't work):
table[5] = "SomeString";
I've tried:
Queue<string> *ptr = table[5];
ptr->insert(SomeString);