|
-
May 8th, 1999, 12:41 PM
#1
Array
How can I assign a size to an array. For example. I want to read from a data file and count records, lines, or watever. Then I want to declare an array using that count.
double Test[Counter]; // Counter being defined as: int Counter = 0;
Then once I read the file and the counter now equals 113 how can I declare the above array? The compiler says I need a const value. How can I get around this? Is there a way I can typecast the int Counter? Thanks for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|