Advertisement
xlujiax

Untitled

Aug 31st, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <stdio.h>
  3.  
  4. using namespace std;
  5.  
  6. int main(int argc, char** argv) {
  7. freopen("precipitaciones.txt", "r", stdin);
  8. char c;
  9. printf("Informe de Precipitaciones\n");
  10. while(1){
  11. printf("Estacion\t\t\tCiudad\t\t\tDepartamento\n");
  12. while((c = getchar()) != ':')
  13. if (c != ',')
  14. putchar(c);
  15. else
  16. printf("\t\t");
  17. printf("\n");
  18. }
  19. printf("Fecha \t\tCantidad \t\tTiempo Total \t\tTiempo Llovido \t\tPromedio\n");
  20.  
  21.  
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement