My textbook lists the function below. Can someone explain to me what this line meanslist=new Type[maxQueueSize];? Especially the part about Type, what does it represent? I thought it was referring to a datatype so I tried int and arrayQueueType but neither worked.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
arrayQueueType::arrayQueueType(int queueSize)
{
if(queueSize <= 0)
{
cout<<"Size of the array to hold the queue must be positive"<<endl;
cout<<"creating an array of size 100"<<endl;
maxQueueSize=100;
}
else
maxQueueSize=queueSize;
queueFront=0;
queueRear=maxQueueSize-1;
count=0;
list=new Type[maxQueueSize];
}