From 284d22c719384119839ebae59311ce90a9dea9eb Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Fri, 16 Sep 2022 11:40:55 -0500 Subject: Add enunciado L3 2022-2 --- 2022-2/L3/Estructuras.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 2022-2/L3/Estructuras.h (limited to '2022-2/L3/Estructuras.h') diff --git a/2022-2/L3/Estructuras.h b/2022-2/L3/Estructuras.h new file mode 100644 index 0000000..489db90 --- /dev/null +++ b/2022-2/L3/Estructuras.h @@ -0,0 +1,35 @@ +/* + * Proyecto: EstructurasLab3_2022_2 + * Archivo: Estructuras.h + * Autor: J. Miguel Guanira E. + * + * Created on 13 de septiembre de 2022, 09:26 PM + */ + +#ifndef ESTRUCTURAS_H +#define ESTRUCTURAS_H + +struct StCita{ + int codigoDelMedico; + int fecha; // Fecha en el formato AAAAMMDD + double tarifaPorConsulta; + char especialidad[50]; +}; + +struct StPaciente{ + int dni; + char nombre[60]; + struct StCita citas[20]; + int numeroDeCitas; + double totalGastado; +}; + +struct StMedico{ + int codigo; + char nombre[60]; + double tarifaPoxConsulta; + char especialidad[50]; +}; + +#endif /* ESTRUCTURAS_H */ + -- cgit v1.2.3