Skip to content

Instantly share code, notes, and snippets.

@pizenblues
Created October 28, 2014 00:18
Show Gist options
  • Save pizenblues/42ad731406d5d0631891 to your computer and use it in GitHub Desktop.
Save pizenblues/42ad731406d5d0631891 to your computer and use it in GitHub Desktop.
case 4:{
int filaS =0, sumaf = 0;
cout<<endl;
printf("\t numero de la ciudad? - ");
read_input(filaS);
if(filaS <= tamano){
filaS -= 1;
for (int i = 0; i < tamano; i++){
sumaf += matriz[filaS][i];
if(matriz[filaS][i] != 0){
int city = i + 1;
cout<<"ciudad: "<<city<<endl;
}
}
cout<< "\t la cantidad de vuelos salientes es: "<<sumaf<<" \n "<<endl;
}else{
printf("\t \t ciudad no encontrado \n");
}
sumaf = 0;
filaS = 0;
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment