-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabelaHash.c
37 lines (33 loc) · 863 Bytes
/
tabelaHash.c
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
#include <stdio.h>
#include <stdlib.h>
#include "func.h"
#include <stdbool.h>
// constante m = primo mais proximo de (numero de funcionarios * 2)
#define M 199
//void imprimirTabela(Funcionario *tabela){
/* printf("-----------TABELA-------------\n");
for(int i = 0; i < M; i++){
if(tabela[i].codigo != -1){
printf("Posicao: %d\n", i);
ImprimirFuncionario(&tabela[i]);
}else{
printf("Posicao: %d\n", i);
printf("Vazio\n");
}
}*/
// }
// void inserirTabela(){
// }
// void removerTabela(int chave){
// }
// Funcionario * inicializaHash(Funcionario *tabelaHash){
// for(int i=0;i<M;i++){
// tabelaHash[i].codigo =-1;
// }
// return tabelaHash;
// }
// int gerarHash(int key){
// return key%M;
// }
// Funcionario * buscarHash(int chave){
// }