Version:0.9 StartHTML:0000000105 EndHTML:0000001345 StartFragment:0000000152 EndFragment:0000001311
/******************************************************/
/*************** Isidro Pastor Jorda ******************/
/******************************************************/
/****************** Telematica ************************/
/******************** FPII ****************************/
/****************** Practica 8 ************************/
/******************************************************/
#include <iostream.h>
#include <stdlib.h>
#include <string>

const int MAX = 1000;
typedef string Valor;
typedef Valor Vector [MAX];

class Heap

{

    public:
        Heap ();
        bool Insertar (Valor);
        bool EliminarMaximo ();
        bool ConsultarMaximo (Valor &);
        bool HeapVacio ();

    private:
        void Subir(int i);
        void Bajar(int i);
        Vector info;
        int num;

};