J
Jim Hudon
i need to create an array of a size determined by a non-const variable:
int char sampleArray[ arraySize ];
why does the following not work, and what can i do:
const int constArraySize = arraySize;
int char sampleArray[ constArraySize;
for both of the above, i get the same error message when i compile:
"storage size of 'sampleArray' is not constant"
thanks...
int char sampleArray[ arraySize ];
why does the following not work, and what can i do:
const int constArraySize = arraySize;
int char sampleArray[ constArraySize;
for both of the above, i get the same error message when i compile:
"storage size of 'sampleArray' is not constant"
thanks...