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){ |
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
//valentina azocar ci 24753255 | |
#include<iostream.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
using namespace std; | |
template <class T> | |
void read_input(T &var){ | |
while(! (cin>>var) ){ |
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
#include<iostream.h> | |
#include <stdio.h> | |
using namespace std; | |
template <class T> | |
void read_input(T &var){ | |
while(! (cin>>var) ){ | |
printf(" \t \t ingrese un numero: "); | |
cin.clear(); |
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
#include<iostream.h> | |
#include <stdio.h> | |
using namespace std; | |
template <class T> | |
void read_input(T &var){ | |
while(! (cin>>var) ){ | |
printf(" \t \t ingrese un numero: "); | |
cin.clear(); |
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
int ELIMINAR(int *vector){ | |
if(_CONTADOR == 0){ | |
printf("COLA VACIA\n"); | |
return -1; | |
} | |
int dato = vector[0]; | |
_CONTADOR--; | |
for (int i = 0; i < _CONTADOR; i++){ |
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
//valentina azocar ci 24753255 | |
#include <iostream> | |
#include <stdio.h> | |
using namespace std; | |
template <class T> | |
void read_input(T &var){ | |
while(! (cin>>var) ){ | |
printf(" \t \t ingrese un numero: "); | |
cin.clear(); |
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
#include <iostream> | |
#include <stdio.h> | |
using namespace std; | |
struct Tiempo | |
{ | |
int horas; | |
int minutos; | |
int segundos; |
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
#include <iostream> | |
#include <stdio.h> | |
using namespace std; | |
struct Tiempo | |
{ | |
int horas; | |
int minutos; | |
int segundos; |