Wednesday, July 9, 2008

Final Proyect

As upon this week my class has to make a hotel managing program
as for me
this is the base for my part...

/* Reporta las Habitaciones.
Autores: Oliver y Viktor
Fecha: 9/07/2008 */

void reportaHabitaciones (FILE *n){
//busca un cliente por su numero clave en el archivo, asume el tipo de dato CheckOut de la libreria stdFH.h

int c; //numero clave del cliente
HABI a; //tabla de facturas(CheckOut)

rewind(n);

fread(&a.act, sizeof(HABI), 1, n);

while (!feof(n)) {
if (a.act){
printf("%d\n", a.Habi);
printf("%d\n", a.Fecha);
printf("%d\n", a.Tari);
printf("%d\n", a.FechaOut);
printf("%d\n", a.tip);
printf("%d\n", a.act);
printf("\n\n");
}
fread(&a.act, sizeof(HABI), 1, n);
}
}

The Blogger

No comments: