Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/01/2012, 13:14
Avatar de FelipePower
FelipePower
 
Fecha de Ingreso: diciembre-2011
Ubicación: Chile-Talca
Mensajes: 9
Antigüedad: 12 años, 4 meses
Puntos: 1
Respuesta: Problema con Matrices en C

if(mat[tm][tg]==1){
cont++;
}

debe ser:

if(mat[i][j]==1){
cont++;
}



Pero ahora nose como hacer para que me diga, fila 1 = (unos) , fila 2..... , porque me lee la suma total de los unos de toda la matriz.