SHOW:
|
|
- or go back to the newest paste.
| 1 | #include <iostream> | |
| 2 | ||
| 3 | using namespace std; | |
| 4 | ||
| 5 | const int righe = 3; | |
| 6 | const int colonne = 3; | |
| 7 | ||
| 8 | void valori_matrice(int matrix[righe][colonne]) | |
| 9 | {
| |
| 10 | for(int i = 0; i < righe; i++) | |
| 11 | {
| |
| 12 | for(int j = 0; j < colonne; j++) | |
| 13 | {
| |
| 14 | cout <<"Inserisci i valori della matrice:\n"; | |
| 15 | cin >> matrice[i][j]; | |
| 16 | } | |
| 17 | } | |
| 18 | ||
| 19 | } | |
| 20 | ||
| 21 | void controlla(int matrix1[righe][colonne]) | |
| 22 | {
| |
| 23 | ||
| 24 | bool trovato = false; | |
| 25 | ||
| 26 | while(trovato) | |
| 27 | {
| |
| 28 | for(int i = 0; i < righe; i++) | |
| 29 | {
| |
| 30 | - | if(a[i] == |
| 30 | + | if(matrix[i] == |