Suppose I have an array in C++ such as the following:
1 2 3 4 = arr
5 6 7 8
9 9 8 9
7 6 1 3
Is there a concise way to exclude any row and/or column?
For example, suppose I want to do an operation on the following array:
1 3 4
5 7 8
7 1 3
In other programming languages, I can obtain the above array fairly easy with arr[-3,-2] to exclude the third row and second column. However, I have been unable to find a concise way to exclude rows and columns in C++. How would you go about it?
Aucun commentaire:
Enregistrer un commentaire