|
Post by economides on Feb 27, 2010 14:43:29 GMT -5
economides asks:
How do we populate an array at compile time? Eg: array string names[10] names[0]="Alyce"; names[1]="Bethany"; ...; names[9]="Julia";
And at run-time? Eg: read in 10 names, and assign each of them to an element of the array.
Is a possible solution to write the names into a file, read it, then assign each name to an element of the array?
Thank you!
|
|
|
Post by Alyce Watson on Feb 28, 2010 17:16:22 GMT -5
I am out of the office, so I cannot answer properly, but that seems reasonable. Have you tried it?
|
|