Guest User

Untitled

a guest
Dec 11th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #define M 4;
  2.  
  3. MAIN
  4. indice_row_carattere(A, 0, 0, S);
  5. ENDMAIN
  6.  
  7. void indice_row_carattere(int **A, int row, int colum, char lettera){
  8.  
  9. if(row==M){
  10. cout<<"FINE";
  11. }
  12. else if(colum<M){
  13.  
  14. if(A[row][colum]==lettera){
  15.  
  16. cout<<"Indice di riga: "<<row;
  17. cout<<"Indice di colonna: "<<colum<<endl;
  18. }
  19. indice_row_carattere(A, row, colum+1, lettera);
  20. }
  21.  
  22. indice_row_carattere(A, row+1, 0, lettera);
  23. }
  24. }
Add Comment
Please, Sign In to add comment