Hey guys i am i am new to C++ and through to a project i have in the university i am having some difficult times . More spesificaly : i ve created a code for Lists and Queues (Lists name = Chain , Queues name = Queue , Product is a struct that has basicly Chains fields) [btw i ve used Sahnis book (data structures) if anyone knows it. I am stuck here :
int k=4;
Queue<Chain<Product>*>* x = new Queue<Chain<Product>*> [k];
for(int i=1;i<k;i++)
{
x[i] = new Queue<Chain<Product>*> [i+1];
}
on the loop it throws me error : Invalid conversion from Queue*>* to int
Any idea?