int num = 5;
CMyClass* var[num];
But, this will work
CMyClass* var[5];
Does anybody know how to create arrays dynamically? I know we are far from VB (visual basic) land but VB has ReDim to create dynamic arrays. Is there such a thing in C++?
I'm guessing I would have to write my own memory allocation code with malloc.... Is there an alternative?
Edited by - dynamicman on November 4, 2001 2:05:41 AM