[Solved] pass two dimensional array to a method C++ [duplicate]
[ad_1] That would be okay if you were to read or modify the positions of the matrix, however you are going to modify the matrix itself. In your example, you’ll need to create another matrix. EDITED: I’ve modified this to use unique_ptr, because of the comments (though I don’t think the OP is really ready … Read more