edmund1978
Programmer
I need to make an array with the size being determined by another variable.
eg.
int num;
...
num = 5;
int array[num];
...
Using VC++ 6
Compiler complains that this isn't constant, I understand why but don't know how to get around it.
eg.
int num;
...
num = 5;
int array[num];
...
Using VC++ 6
Compiler complains that this isn't constant, I understand why but don't know how to get around it.