I need to make a dynamically-allocated two-dimensional array.
so what i did was:
int **arrayPtr;
then i get my width and my height.
then:
arrayPtr = new int[width][height];
i keep getting this error saying:
error C2440: '=' : cannot convert from 'int (*)[1]' to 'int ** '
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
am I not doing this properly for a two demensional array?