Hi,
I'd like to know if it's possible to allocate a multidimensional array
during runtime using the new operator. I tried but VC tells me this:
C:\Program Files\Microsoft Visual Studio\MyProjects\asdf\asdf.cpp(9) : error
C2440: '=' : cannot convert from 'int (*)[32]' to 'int *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
don't have a clue what all this mean, execpt that what I'm trying to do is
wrong =)
codes:
#include "stdafx.h"
int main(int argc, char* argv[])
{
int *test;
test = new int[32][32];
printf("Hello World!\n");
return 0;
}
TIA,Max,