Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <stdio.h>
- using namespace std;
- int main(int argc, char** argv) {
- freopen("precipitaciones.txt", "r", stdin);
- char c;
- printf("Informe de Precipitaciones\n");
- while(1){
- printf("Estacion\t\t\tCiudad\t\t\tDepartamento\n");
- while((c = getchar()) != ':')
- if (c != ',')
- putchar(c);
- else
- printf("\t\t");
- printf("\n");
- }
- printf("Fecha \t\tCantidad \t\tTiempo Total \t\tTiempo Llovido \t\tPromedio\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement