Posted by William D McQuain on November 13, 2001 at 10:05:24:
In Reply to: declaring array index posted by Aman on November 12, 2001 at 17:53:44:
: i don't understand y when i try to declare the array index by passing it through as a return function it won't work. Like i made a const int in my main and i set that equal to a return function that retrieves the array size from the datafile. Then I set all my array indices to the const varible
: const int index = FuncitonCall();
Ok, what does "constant" mean? The value returned by your function isn't known until the program runs, and it probably varies depending on what data the function is getting. That's not a constant.
: string License[index];
: can somebody help me?????
Post a Followup