summaryrefslogtreecommitdiffstats
path: root/2022-2/L03/Estructuras.h
blob: 489db907c022e3fac52b7b8452650496f8793210 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 */