Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Populating a 2-dimensional array
#2
QM does not have easier ways to populate int arrays, like in C++ int a[]={value, value,...};
Need to set each value like this:
Macro Macro1998
Code:
Copy      Help
ARRAY(int) a
a.create(6 4) ;;create array, all values 0
a[5 0]=3 ;;set a value

out a[5 0]


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)