Matrix array prints transposed

I wrote a program to take in a dynamic array and creat a matrix but if i do for example and 2x3 matrix it will print a 3x2 matrix. Here some code below were I ask for the dimensions and create the array. My constructors are correct. So I can only think it comes from here
Last edited on
where is your code ?

transpose is easy , simply do a nested for loop with i and j , if i != j (diagonale) then inverse i and j case , for instance :
1
2
3
4
5
//pseudocode
for(...j)
for(...i)
       if (i == j) continue;
        m_matrix[i][j] = m_matrix[j][i];
Topic archived. No new replies allowed.