Hello I'm getting a problem with my 2d array, I'm getting a 90 degree wrong angle from the 2d array for example when I try this code javascript:tx('this->matrix[1][0] = 2;') it should be
-1 2 -1 -1...
-1 -1 -1 -1...
-1 -1 -1 -1...
and so on but instead it turnes
-1 -1 -1 -1...
2 -1 -1 -1...
-1 -1 -1 -1...
Hmm. You write "matrix[1][0]", but on line 31 you write "matrix[0][1]". Confusing.
Lets see what your print() does. When i==0, you show values array[0][j] and an std::endl. That is one printed line (aka first row). Thus, the 'i' is the index of a row and the 'j' determines column.