Created
October 28, 2014 00:18
-
-
Save pizenblues/42ad731406d5d0631891 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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