Vex multidimensional array how? can i even?

   2839   1   0
User Avatar
Member
97 posts
Joined: May 2015
Offline
int Array1[];
int Array3[][];

Array1 = {2,4,3,56,34,7,2};
int Arrlen = len(Array1);

for(int i = 0; i < Arrlen; i++)
{
int num = Array1[i];

Array3[0][i] = num;

}

Was hoping this would work but didnt, getting an error on i saying “Ambiguous to array index operator”. I need to get an array with within array to than later check which one in the array as less. I remember doing it one time and using @ to see what got stored but i forgot how it was done.
User Avatar
Member
8555 posts
Joined: July 2007
Online
VEX doesn't support array of arrays
the easiest may be to use 1d array of length M*N
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links