Documento 5

Description
praticas de programação - projeto

Please download to get full document.

View again

of 79
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Information
Category:

Documents

Publish on:

Views: 2 | Pages: 79

Extension: PDF | Download: 0

Share
Tags
Transcript
  // Rafael Braz Menezes Cabral //types.h #ifndef ESTRUTURAS #define ESTRUTURAS #define TRUE 1 #define FALSE 0 int manha = 0, tarde = 0; typedef struct cliente { char cpf[11]; char nome[100]; char tel[15]; char email[50]; int status; } tcliente; typedef struct medicos { char crm[8]; char nome[100]; int especialidade; int horarios[2][5]; char tel[15]; char email[50]; int status; } tmedicos; typedef struct consulta { char cpf[11]; char crm[8];   char data_consulta[20]; int turno; tcliente *paciente_manha[10]; tcliente *paciente_tarde[10]; int status; // -1 = cancelado, 0 = em espera, 1 = concluído }tconsulta; typedef struct no { char cpf[11]; char nome[100]; char tel[15]; char email[50]; int pos; struct no *esq; struct no *dir; }tno; typedef struct no_med { char crm[8]; char nome[100]; int especialidade; int horarios[2][5]; char tel[15]; char email[50]; int pos; struct no_med *esq; struct no_med *dir; }tno_med; typedef struct noqueue{ tcliente *fila_de_espera;   struct fila *prox; }tnoqueue; typedef struct descritor{ tnoqueue *inicio, *fim; }tdescritor; typedef tdescritor *Queue; typedef struct noStack { tno * info; tno_med * info_med; struct noStack *prox; }NoStack; typedef NoStack * Stack; Queue *m, *t; #endif //moduloclientes.h #include <stdio.h> #include types.h int buscar_no_indice(tno * raiz, char cpf[ tcliente retorna_cliente(tno *raiz, FILE * arq, char cpf[ void inserir(FILE *arq, tno **raiz, char cpf[  void alterar_arvore(FILE * arq, tno *raiz, char cpf[ void remover_arvore(tno **raiz, char cpf[ int validar_cpf(char str[ int validar_nome(char str[ int validar_telefone(char str[ int validar_email(char str[ void cadastro(char cpf[], FILE * arq, tno *raiz); void alterar(FILE * arq, char cpf[], tno *raiz); void exibir(tno * raiz, char cpf[ void remover(FILE * arq, char cpf[], tno *raiz); int consultar_por_nome(FILE * arq, char nome[ //modulomedicos.h #include <stdio.h> #include types.h int buscar_no_indice_medicos(tno_med * raiz, char crm[ int validar_crm(char str[ tmedicos retorna_medico(tno_med *raiz, FILE * arq, char crm[ void inserir_med(FILE *arq, tno_med **raiz, char crm[ void cadastro_medico(char crm[], FILE * arq, tno_med *raiz); void procura_especialidade(FILE * arq, int esp); void consultar_nome(FILE * arq, char nome[ tno_med * maior_med(tno_med *raiz); void remover_no_med(tno_med **raiz); void remover_indice_med(tno_med **raiz, char crm[ void remover_med(FILE * arq, char crm[], tno_med *raiz); void alterar_indice_med(FILE * arq, tno_med *raiz, char crm[
Related Search
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks