Unidad 4/src/hospedaje.cpp
//SUBO LAS CASAS Y LAS CARACTERISTICAS A MEMORIA
SUBO LAS CASAS Y LAS CARACTERISTICAS A MEMORIA
SUBO LAS CASAS Y LAS CARACTERISTICAS A MEMORIA
Coll<RegistroCaracteristicas> subirCaracteristicas()
{
    Coll<RegistroCaracteristicas> collCaracteristicas = coll<RegistroCaracteristicas>();
    FILE *caracteristicas = fopen("CARACTERISTICAS.dat", "rb");
    Caract unaCaracteristica = read<Caract>(caracteristicas);
    while (!feof(caracteristicas))
    {
        RegistroCaracteristicas rc = registroCaracteristicas(unaCaracteristica);
        collAdd<RegistroCaracteristicas>(collCaracteristicas, rc, registroCaracteristicasToString);
        unaCaracteristica = read<Caract>(caracteristicas);
    }
    fclose(caracteristicas);
    return collCaracteristicas;
}
Coll < RegistroCaracteristicas > subirCaracteristicas ( ) { Coll < RegistroCaracteristicas > collCaracteristicas = coll < RegistroCaracteristicas > ( ) ; FILE * caracteristicas = fopen ( " " , " " ) ; Caract unaCaracteristica = read < Caract > ( caracteristicas ) ; while ( ! feof ( caracteristicas ) ) { RegistroCaracteristicas rc = registroCaracteristicas ( unaCaracteristica ) ; collAdd < RegistroCaracteristicas > ( collCaracteristicas , rc , registroCaracteristicasToString ) ; unaCaracteristica = read < Caract > ( caracteristicas ) ; } fclose ( caracteristicas ) ; return collCaracteristicas ; }
SUBO LAS CASAS Y LAS CARACTERISTICAS A MEMORIA
SUBO LAS CASAS Y LAS CARACTERISTICAS A MEMORIA