Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include "reporte.h"
- #include "ordenamiento.h"
- char pasarPalabra(){
- char c;
- while ((c=getchar()) == ' ' || c == '\t');
- do{
- putchar(c);
- c = getchar();
- }while(c!=' ' && c!='\n' && c!='\t');
- return c;
- }
- int leerResultados(char A[N], int &n){
- char c;
- n = 0;
- while (1){
- c = getchar();
- if (c == '\n') return 0;
- if (c == EOF) return c;
- if (c == ' ' || c == '\t') continue;
- A[n++] = c;
- }
- }
- int leerResultados(int A[N], int &n){
- char c;
- n = 0;
- while(1){
- scanf("%d", &A[n++]);
- c = getchar();
- if (c == '\n') return 0;
- if (c == EOF) return c;
- }
- }
- int leerResultados(float A[N], int &n){
- char c;
- n = 0;
- while(1){
- scanf("%f", &A[n++]);
- c = getchar();
- if (c == '\n') return 0;
- if (c == EOF) return c;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement