Remove row a and column b from the two-dimensional matrix.C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Remove row a and column b from the two-dimensional matrix.C++

There is a two-dimensional matrix a[i][j], provided that the number of elements is given directly in the code.For example: i=1,2...n and j=1,2...m. I need to delete any row and any column in this matrix and then display the modified matrix.Please help!

9th Dec 2018, 9:53 PM
Денис Ладуницкий
Денис Ладуницкий - avatar
1 Answer
+ 1
store which row and column you want to delete, while printing the original matrix check if it's row/ column matches that of stored row and column - if it does don't print the number. And repeat the same.
9th Dec 2018, 9:58 PM
LiquidX
LiquidX - avatar