P
paul
Hi all,
I'm trying to use an array in my C++ programme, but the size of the
array is not known until run time; I've tried using linked lists, which
work quite well, but traversing the list is quite slow. Is there
another way to declare an array during run-time? I thought about
something like:
iVal = some_function( blob );
MyClass *my_array;
my_array = new MyClass[ iVal ];
- but this doesn't want to work on my compiler.
TIA
Paul
I'm trying to use an array in my C++ programme, but the size of the
array is not known until run time; I've tried using linked lists, which
work quite well, but traversing the list is quite slow. Is there
another way to declare an array during run-time? I thought about
something like:
iVal = some_function( blob );
MyClass *my_array;
my_array = new MyClass[ iVal ];
- but this doesn't want to work on my compiler.
TIA
Paul