I I need to define/declare an integer array based on the number of lines I read in from a text file.
e.g. My program determines there are 54 lines in a user generated text file. The number placed in variable "line_count"
e.g. to define/declare an array called "edsarray".
static int edsarray[54] is what I need (with null cap), but of course:
static int edsarray[line_count] will not work because the arraysize must be a constant.
I can make the array supersized for all likely possibilities, and that would work for me, but is there a better way?
Am I missing something?
Thanks Ed