|
-
November 20th, 2009, 01:45 PM
#1
initializing static array
I am writing a class which will have a static array. I need to initialize the array using a for loop. There will be several instances of the class, each of which will read values from the array. The instances need to treat the array as "constant". The code to initialize the array needs to be executed only once, not once for each instance.
Can I do all of this, and what is the syntax?
Last edited by bsaucer; November 20th, 2009 at 01:47 PM.
Reason: duplicate word
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
|