Historigrama

Embed Size (px)

DESCRIPTION

codigo

Citation preview

  • 7/18/2019 Historigrama

    1/3

    // ConsoleApplication4.cpp: define el punto de entrada de la aplicacin de consola.//

    #include "stdafx.h"#include "conio.h"#include "stdio.h"#include "stdlib.h"#include "iostream"#include "fstream"#include "iomanip"

    using namespace std;

    float datosa[1000];float datosb[1000];int i(1);int j(1);float g=0.0;float LSPC=0.0 ;float AC = 0.0;int NC = 1;

    int main()

    { ifstream dat("DATAREA.txt");

    for (i = 0; i > datosa[i];dat >> datosb[i];

    }

    for (j = 1; j < 999; j++){

    for (i = 0; i < 999; i++)

    { if (datosa[i] > datosa[i + 1]){

    g = datosa[i];datosa[i] = datosa[i + 1];datosa[i + 1] = g;i = 1;j = 1;

    }}

    }

    i = 1;j = 1;g = 0.0;

    for (j = 0; j < 999; j++){

    for (i = 0; i < 999; i++){

    if (datosb[i] > datosb[i + 1]){

  • 7/18/2019 Historigrama

    2/3

    g = datosb[i];datosb[i] = datosb[i + 1];datosb[i + 1] = g;i = 1;j = 1;

    }}

    }

    // cout LSPC;// system("cls");// cout AC;// system("cls");// cout NC;// system("cls");

    int AG[10] = { 5, 15, 25, 35, 57,63,68,87,91,94};int AL[10] = { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };int NH = 9;

    i = 0;int d = 0;int L[10];for (j = 0; j

  • 7/18/2019 Historigrama

    3/3

    //void suma(int a, int b, int &r);

    //int main(){// int x, y, t;

    // puts("Ingresar Primer Numero: ");// scanf("%i", &x);// puts("Ingresar Segundo Numero: ");// scanf("%i", &y);// suma(x, y, t);// printf("Total de Suma : %i\n", t);// system("PAUSE");// return 0;//}

    //void suma(int a, int b, int &r)

    //{// r = a + b;//}