Hello.
I want to assign number to 2dimentional array .
But seems like this code is not working.
Please teach me how to fix.Thank you!
var MyArray : [][]int = array{array{}}
if(set MyArray[3][3] = 1){}
Hello.
I want to assign number to 2dimentional array .
But seems like this code is not working.
Please teach me how to fix.Thank you!
var MyArray : [][]int = array{array{}}
if(set MyArray[3][3] = 1){}
Use TArray
TArray<TArray<int>> MyArray = TArray<TArray<int>> ();
// Add element to 2-dimentional array
TArray<int> temp = TArray<int>();
temp.Add(1);
MyArray.Add(temp);
// Access Element
int FirstElement = MyArray[0][0];