Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/03/2016, 18:38
Avatar de vangodp
vangodp
 
Fecha de Ingreso: octubre-2013
Mensajes: 934
Antigüedad: 10 años, 7 meses
Puntos: 38
Respuesta: Comprar Caracteres De Un String Con Un Caracter

Si 1 for char e Posi for un string
Código C++:
Ver original
  1. for(j;j<N;j++){
  2.    if(Posi[j]=='1'){
  3.       cont++;
  4.    }
  5. }