This repository was archived by the owner on Mar 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathestructuras.cpp
More file actions
103 lines (85 loc) · 1.62 KB
/
estructuras.cpp
File metadata and controls
103 lines (85 loc) · 1.62 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#ifndef ESTRUCTURAS
#define ESTRUCTURAS
/* Estructuras base */
// INICIO DECLARACION DE ENUMERADOS
typedef enum Horario {
Matutino, Vespertino, Nocturno
}Horario;
// FIN DECLARACION DE ENUMERADOS
//--------------------------------------
// INICIO DECLARACION DE ESTRUCTURAS BASE
typedef struct Fecha {
unsigned short dia;
unsigned short mes;
unsigned short ano;
}Fecha;
typedef struct Alumno {
char nombre[15];
char apellido[15];
int cedula;
char direccion[255];
char telefono[15];
Fecha fechaNac;
char correo[30];
Alumno *prox;
}Alumno;
typedef struct Materia {
int codigo;
char nombre[30];
char area[20];
unsigned short creditos;
unsigned short semestre;
Materia *prox;
}Materia;
typedef struct PromedioCurso {
int CantidadAlumnos;
int Aprobados;
int Reprobados;
int Retirados;
float promedio;
}PromedioCurso;
typedef struct Curso {
int codigo;
unsigned short ano;
unsigned short lapso;
int codMat;
Horario horario;
Curso *prox;
}Curso;
// FIN DECLARACION DE ESTRUCTURAS BASE
//--------------------------------------
// INICIO DECLARACION DE INDICES
typedef struct AlumN {
char estatus;
float nota;
Curso *curso;
AlumN *prox;
}AlumN;
typedef struct AlumC {
Alumno *alumno;
AlumC *prox;
AlumN *materias;
}AlumC;
typedef struct CursosA {
float nota;
char estatus;
Alumno* alumno;
CursosA* prox;
}CursosA;
typedef struct CursosS {
Curso* curso;
CursosS* prox;
CursosA* alumnos;
}CursosS;
typedef struct CursosY {
unsigned short ano;
CursosS *cursosDictados;
CursosY *prox;
}CursosY;
typedef struct ArchivoNotas {
int cedula;
int codigoCurso;
float nota;
char estatus;
}ArchivoNotas;
#endif