-
Notifications
You must be signed in to change notification settings - Fork 0
/
usuario.h
45 lines (39 loc) · 961 Bytes
/
usuario.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
#ifndef USUARIO_H_INCLUDED
#define USUARIO_H_INCLUDED
#include<stdio.h>
#include<stdlib.h>
#include"livro.h"
typedef struct endereco{
char logradouro[100];
int numero;
char bairro[100];
char cidade[100];
char CEP[10];
}TEndereco;
typedef struct TipoUsuario
{
char CPF[15];
char nome[30];
char sobrenome[30];
char ID[15];
TEndereco endereco;
TData data_nascimento;
int tipo_usuario;
char local_atuacao[40];
float debito;
int livros_obtidos;
}TUsuario;
typedef struct ModuloUsuario
{
TUsuario vetor_usuario[100];
int indice;
}TModuloUsuario;
void IniciarVetorUsuario(TModuloUsuario *);
void LerUsuario(TUsuario *);
int CadastrarUsuario(TModuloUsuario*, TUsuario);
void ImprimirUsuario(TUsuario);
void ImprimirTodosUsuarios(TModuloUsuario);
int PesquisaUsuario(TModuloUsuario, TUsuario);
int AlterarUsuario(TModuloUsuario *, TUsuario, int);
int ExcluirUsuario(TModuloUsuario *, int);
#endif