+ 2
How development a matriz in c++ ?
The problem would be that if you have an array of[ 15][15] you want the user to say a value and the program will print it if that number is inside the array…… plss help xD
2 ответов
+ 2
thanksss
0
hey let's see if I can help clear things.
you declare two indexes.
int matrix[15][15]
int row; (0 To 14)
int column; (0 To 14)
you choose the row and column you want and attribute to the variables.
like
row = 3; (4th row)
column = 3; (4th column)
and now output it on the screen
cout << matrix [row][column]
or you can access directly
cout << matrix[3][3]
hope it helped.
Have a beautiful day :)