-
Notifications
You must be signed in to change notification settings - Fork 0
/
ENCEC.h
80 lines (72 loc) · 2.04 KB
/
ENCEC.h
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
#ifndef ENCEC_HEADER
#define ENCEC_HEADER
#define tamNome 30
#define tamDoc 15
#define capMax 150
enum eventos {Palestra=1, Cursos, Grupos, Oficinas};
enum Local {Auditorio1=1, Auditorio2, Auditorio3, Sala1, Sala2,Sala3,Lab1,Lab2};
enum participantes {Congressista=1,Palestrante,Organizador};
typedef struct endereco
{
char rua[tamNome];
char bairro[tamNome];
char cidade[tamNome];
char estado[tamNome];
char pais[tamNome];
int cep;
int numero;
char numCelular[tamNome];
char email[tamNome];
} ENDERECO;
typedef struct pessoa
{
char nome[tamNome];
char cpf[tamDoc];
char id[tamDoc]; //identidade
ENDERECO ende;
} PESSOA;
typedef struct
{
int capacidadeMin;
int capacidadeMax;
int local;
int cargaHoraria;
char horario[tamNome];
char tema[tamNome];
char palestrante[tamNome];
char membrosMesa[tamNome];
char Oficinas[tamNome];
char Grupos[tamNome];
char Palestra[tamNome];
char Cursos[tamNome];
} ENCEC;
void encec();
void lerNome(PESSOA *p);
void lerCPF(PESSOA *p);
void lerIdentidade(PESSOA *p);
void lerRua(PESSOA *p);
void lerNumero(PESSOA *p);
void lerBairro(PESSOA *p);
void lerCidade(PESSOA *p);
void lerEstado(PESSOA *p);
void lerPais(PESSOA *p);
void lerCEP(PESSOA *p);
void lerNumCelular(PESSOA *p);
void lerEMAIL(PESSOA *p);
void removerDados(PESSOA *p, int nc);
void editarDados(PESSOA *p, int np);
void acrescentarCongressista(PESSOA *congressista);
void mostrarCongressista(PESSOA *pessoa);
void acrescentarPalestrante(PESSOA *palestrante);
void mostrarPalestrante(PESSOA *pessoa);
void acrescentarOrganizador(PESSOA *organizador);
void mostrarOrganizador(PESSOA *organizador);
void *alocaMemoria(ENCEC *p,int numCongressistas);
void liberaMemoria(ENCEC *p,int numCongressistas);
void printArq(ENCEC *pessoa, int numCongressistas);
void lerArqBin();
void printArq(ENCEC *pessoa, int numCongressistas);
void organizarEvento();
void HideCursor();
void cabecalho();
#endif // ENCEC_HEADER