--- In [email protected], Christopher Coale <chris95...@...> wrote:
>
> Jos Timanta Tarigan wrote:
> >
> > colour *col=new colour[10][10]; <-- i cant compile this line.
> >
> > cannot convert int(*)[10] to int*
> >
> You just need to typecast the "new colour[10][10]" to a "colour *".
> 
> colour *col = (colour *)new colour[10][10];

Sorry, I don't do C++, but if you needed a typecast in the equivalent
C program, I would say you had done something wrong. Please tell me
there's a better way :-)

Reply via email to