Código Pascal
type TFecha = record dia: integer; mes: string; anio: integer; end; TMedicamento = array[0..2] of integer; TPaciente = record nombreCompleto: string; edad: integer; altura: real; fechaNacimiento: TFecha; medicamento: TMedicamento; tope: integer; end; THospital = array[0..2, 0..9] of TPaciente; var hospital: THospital; begin // Inicializamos todos los topes for planta := 0 to 2 do for habitacion := 0 to 9 do hospital[planta, habitacion].tope := -1; // Tu código aquí... end.
Visualización del Registro