Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * File: estadisticas.h
- * Author: Fernando Alva Manchego
- *
- */
- #ifndef ESTADISTICAS_H
- #define ESTADISTICAS_H
- #include "ordenamiento.h"
- void generarReporte(int [], int);
- void generarReporte(char [], int);
- void generarReporte(float [], int, int amplitud = 5);
- #endif /* ESTADISTICAS_H */
- /*
- * File: ordenamiento.h
- * Author: Fernando Alva Manchego
- *
- */
- #ifndef ORDENAMIENTO_H
- #define ORDENAMIENTO_H
- #define N 1000
- template <typename T>
- void ordenar(T elementos[N], int n){
- for (int i=0;i<=n-2;i++){
- for(int j=0;j<=n-2-i;j++){
- if (elementos[j+1] < elementos[j]){
- T temp = elementos[j];
- elementos[j] = elementos[j+1];
- elementos[j+1] = temp;
- }
- }
- }
- }
- #endif /* ORDENAMIENTO_H */
- /*
- * File: reporte.h
- * Author: Fernando Alva Manchego
- *
- */
- #ifndef REPORTE_H
- #define REPORTE_H
- char pasarPalabra();
- int leerResultados(char A[], int &n);
- int leerResultados(int A[], int &n);
- int leerResultados(float A[], int &n);
- #endif /* REPORTE_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement