Now I need to implement a variable-sized generic QueueArray class that implements an array of queues,and then constructs a QueueArray object intqueue consisting of an array of 10 integer queues using the statement:
QueueArray <int> intqueue (10);
I tried this:
template<class T>
class QueueArray
{
public:
....(functions)
private:
queue<T> que;
...
}
Now I wonder how to make a vector or list,which holds an array of queues of type T?
Any help is appreciated.
QueueArray <int> intqueue (10);
I tried this:
template<class T>
class QueueArray
{
public:
....(functions)
private:
queue<T> que;
...
}
Now I wonder how to make a vector or list,which holds an array of queues of type T?
Any help is appreciated.