This is a user of borland C++ builder 5 begging 
Is it possible to make an new array, with dynamic size, during runtime?
e.g:
void MyFunction(int NumOfelements)
{
int MyArray[NumOfElements];
}
This don't work, error msg:"E2313 Constant expression required".
As far as I know Builder say it isn't possible, but do anybody know a work-around?
I can't use #define, need somthing I can change during Runtime (and I can't make it work with #define either).
oh... a tiny example would be nice, I'm not 100% hardcore at this stuff
Is it possible to make an new array, with dynamic size, during runtime?
e.g:
void MyFunction(int NumOfelements)
{
int MyArray[NumOfElements];
}
This don't work, error msg:"E2313 Constant expression required".
As far as I know Builder say it isn't possible, but do anybody know a work-around?
I can't use #define, need somthing I can change during Runtime (and I can't make it work with #define either).
oh... a tiny example would be nice, I'm not 100% hardcore at this stuff