Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Initialize an Array?
#1
Pretty basic question, but couldn't find answer in help or forum ...

What is the simplest, most direct way to initialize the contents of an array.

For example, if I have the following array:

array[0 0] = 5
array[0 1] = 7
array[1 0] = 2
array[1 1] = 12
array[2 0] = 1
array[2 1] = 4

is there a simple, one line method of initializing the array to these values?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)