+ 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

21st Jun 2017, 5:19 PM
Paulo Salazar
Paulo Salazar - avatar
2 Antworten
+ 2
thanksss
24th Jun 2017, 4:15 PM
Paulo Salazar
Paulo Salazar - avatar
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 :)
23rd Jun 2017, 11:14 PM
Nicolas Cendron Fernandes
Nicolas Cendron Fernandes - avatar